/* assets/css/auth.css */
.auth-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Logo */
.auth-logo-container {
    text-align: center;
    margin-bottom: 48px;
}
.auth-logo {
    width: 170px;
    height: 170px;
    object-fit: contain;
}
.auth-app-name {
    font-family: 'Lobster', cursive;
    font-size: 30px;
    color: var(--text);
}
.auth-tagline {
    font-size: 14px;
    color: var(--subText);
    margin-top: 4px;
}

/* Back Button */
.auth-back-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 16px;
    padding: 8px 0;
    cursor: pointer;
    align-self: flex-start;
    margin-bottom: 16px;
}
.auth-back-btn i {
    margin-right: 8px;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}
.auth-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(182, 15, 15, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.auth-icon-circle i {
    font-size: 40px;
    color: var(--accent);
}
.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.auth-subtitle {
    font-size: 15px;
    color: var(--subText);
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.auth-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}
.auth-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 0 14px;
    transition: border-color 0.3s;
}
.auth-input-wrapper:focus-within {
    border-color: var(--accent);
}
.auth-input-wrapper .fa-icon {
    color: var(--subText);
    margin-right: 12px;
    font-size: 18px;
}
.auth-input {
    flex: 1;
    padding: 16px 0;
    font-size: 16px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
}
.auth-input::placeholder {
    color: var(--subText);
}
.auth-eye-btn {
    background: none;
    border: none;
    color: var(--subText);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
}
.auth-eye-btn:hover {
    color: var(--text);
}

/* Options */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--subText);
    cursor: pointer;
}
.auth-checkbox input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}
.auth-forgot-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.auth-forgot-link:hover {
    text-decoration: underline;
}

/* Submit Button */
.auth-submit-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.auth-submit-btn:hover {
    opacity: 0.9;
}
.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.auth-submit-btn i {
    font-size: 18px;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
}
.auth-footer-text {
    color: var(--subText);
}
.auth-footer-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.auth-footer-link:hover {
    text-decoration: underline;
}

/* Option Buttons (Choose Account) */
.auth-option-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-align: left;
}
.auth-option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.auth-option-btn .fa-icon-lg {
    font-size: 32px;
    color: var(--accent);
    min-width: 40px;
}
.auth-option-text {
    flex: 1;
}
.auth-option-title {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
}
.auth-option-subtitle {
    display: block;
    font-size: 13px;
    color: var(--subText);
}
.auth-option-arrow {
    color: var(--accent);
    font-size: 20px;
}

/* Login Container */
.auth-login-container {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}
.auth-login-text {
    color: var(--subText);
}
.auth-login-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.auth-login-link:hover {
    text-decoration: underline;
}

/* Social Login */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}
.auth-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-divider-text {
    color: var(--subText);
    font-size: 14px;
    white-space: nowrap;
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}
.auth-social-btn:hover {
    background: var(--border);
    transform: translateY(-1px);
}
.auth-social-btn i {
    font-size: 22px;
}
.auth-social-btn.google i {
    color: #ea4335;
}
.auth-social-btn.apple i {
    color: var(--text);
}
.auth-social-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}
.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s;
}
.step-dot.active {
    width: 24px;
    background: var(--accent);
    border-radius: 4px;
}
.step-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--subText);
    margin-bottom: 24px;
    padding: 0 4px;
}
.step-labels span {
    text-align: center;
    flex: 1;
}

/* Step Content */
.step-content {
    display: none;
    flex-direction: column;
    gap: 16px;
}
.step-content.active {
    display: flex;
}

/* Auth Hint */
.auth-hint {
    font-size: 14px;
    color: var(--subText);
    margin-bottom: 8px;
}

/* Step Buttons */
.auth-step-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.auth-back-step-btn {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s;
}
.auth-back-step-btn:hover {
    background: var(--border);
}
.auth-step-buttons .auth-submit-btn {
    flex: 2;
}

/* Category Search */
.category-search {
    display: flex;
    align-items: center;
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 0 14px;
}
.category-search .fa-icon {
    color: var(--subText);
    margin-right: 12px;
}
.category-search .auth-input {
    flex: 1;
    padding: 14px 0;
    font-size: 16px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}
.category-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
}
.category-item:hover {
    transform: scale(1.02);
}
.category-item.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Plan Cards */
.plan-card {
    background: var(--card);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s;
}
.plan-card:hover {
    transform: translateY(-2px);
}
.plan-card.active {
    border-color: var(--accent);
    background: rgba(182, 15, 15, 0.05);
}
.plan-card.premium {
    border-color: #f59e0b;
}
.plan-card.premium.active {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}
.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.plan-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}
.plan-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}
.plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.plan-old-price {
    font-size: 14px;
    color: var(--subText);
    text-decoration: line-through;
}
.plan-duration {
    font-size: 14px;
    color: var(--subText);
    margin-bottom: 12px;
}
.plan-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 16px;
}
.plan-features i {
    color: #22c55e;
    margin-right: 8px;
}
.plan-select-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}
.plan-select-btn:hover {
    opacity: 0.9;
}
.premium .plan-select-btn {
    background: #f59e0b;
}

/* Review Card */
.review-card {
    background: var(--card);
    border-radius: 12px;
    padding: 20px;
}
.review-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.review-row:last-child {
    border-bottom: none;
}
.review-label {
    font-size: 15px;
    color: var(--subText);
    font-weight: 500;
}
.review-value {
    font-size: 15px;
    color: var(--text);
    font-weight: 600;
    max-width: 60%;
    text-align: right;
    word-break: break-word;
}

/* OTP Input */
.otp-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
}
.otp-input {
    width: 56px;
    height: 60px;
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    transition: border-color 0.3s;
}
.otp-input:focus {
    border-color: var(--accent);
    outline: none;
}

/* Success State */
.auth-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.auth-success-icon i {
    font-size: 40px;
    color: #fff;
}
.auth-success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 12px;
}
.auth-success-message {
    font-size: 16px;
    color: var(--subText);
    text-align: center;
    margin-bottom: 16px;
}
.auth-success-hint {
    font-size: 14px;
    color: var(--subText);
    text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 24px 16px;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .auth-logo {
        width: 120px;
        height: 120px;
    }
    .auth-app-name {
        font-size: 24px;
    }
    .otp-input {
        width: 48px;
        height: 52px;
        font-size: 20px;
    }
}