/* ============================================
   MODERN AUTH PAGES STYLES - 24BUYM
   ============================================ */

/* Auth Layout */
.auth-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

/* Decorative background elements */
.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(205, 164, 41, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-wrapper::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(205, 164, 41, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Card */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(22, 22, 20, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(205, 164, 41, 0.12);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    animation: authCardIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Top gold accent line */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #cda429, transparent);
    border-radius: 0 0 3px 3px;
}

/* Logo */
.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s;
}

.auth-logo a:hover {
    transform: scale(1.05);
}

.auth-logo img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.auth-logo .logo-text {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #cda429, #ffd873);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-header__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(205, 164, 41, 0.1);
    border: 1px solid rgba(205, 164, 41, 0.15);
    border-radius: 16px;
    color: #cda429;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}

/* Form Elements */
.auth-form-group {
    margin-bottom: 1.25rem;
}

.auth-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.4rem;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.auth-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-family: 'Prompt', sans-serif;
    outline: none;
    transition: all 0.25s ease;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.auth-input:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(205, 164, 41, 0.5);
    box-shadow: 0 0 0 3px rgba(205, 164, 41, 0.1);
}

.auth-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Password toggle */
.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .auth-input {
    padding-right: 44px;
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: color 0.2s;
}

.auth-password-toggle:hover {
    color: rgba(255, 255, 255, 0.65);
}

/* Links */
.auth-link {
    font-size: 0.8125rem;
    color: #cda429;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #ffd873;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-divider span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Social Login */
.auth-social {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.auth-social__btn {
    width: 52px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.auth-social__btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.auth-social__btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Buttons */
.auth-btn {
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
}

.auth-btn--primary {
    background: linear-gradient(135deg, #cda429 0%, #e6c84a 100%);
    color: #000;
    box-shadow: 0 4px 16px rgba(205, 164, 41, 0.25);
}

.auth-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(205, 164, 41, 0.35);
    color: #000;
}

.auth-btn--primary:active {
    transform: translateY(0);
}

.auth-btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-btn--secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.auth-btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    height: 40px;
    font-size: 13px;
    font-weight: 400;
}

.auth-btn--ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.auth-btn--ghost svg {
    opacity: 0.5;
}

/* Alerts */
.auth-alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.auth-alert ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-alert ul li {
    margin-bottom: 2px;
}

.auth-alert ul li::before {
    content: '•';
    margin-right: 6px;
    opacity: 0.6;
}

.auth-alert--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.auth-alert--success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.15);
    color: #86efac;
}

.auth-alert--warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.15);
    color: #fde68a;
}

.auth-alert--info {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.15);
    color: #93c5fd;
}

.auth-alert__icon {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Checkbox */
.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    transition: all 0.2s;
}

.auth-checkbox input[type="checkbox"]:checked {
    background: #cda429;
    border-color: #cda429;
}

.auth-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: 2px solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth-checkbox .auth-checkbox-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

.auth-checkbox .auth-checkbox-text .text-gold {
    color: #cda429;
}

/* OTP Section */
.auth-otp-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.12);
    border-radius: 10px;
    margin-top: 0.75rem;
    font-size: 13px;
    color: #fde68a;
}

.auth-countdown svg {
    flex-shrink: 0;
    color: #fbbf24;
}

.auth-countdown__time {
    font-weight: 700;
    color: #fbbf24;
    font-variant-numeric: tabular-nums;
}

/* Bottom links row */
.auth-bottom {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Error text under input */
.auth-error {
    font-size: 12px;
    color: #fca5a5;
    margin-top: 4px;
}

/* Verified badge in verify page */
.auth-verified {
    text-align: center;
    padding: 1rem 0;
}

.auth-verified__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: 50%;
    color: #4ade80;
}

.auth-verified__text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.auth-verified__sub {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.25rem;
        border-radius: 16px;
        margin: 0 4px;
    }

    .auth-title {
        font-size: 1.3rem;
    }

    .auth-header__icon {
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   LEGACY COMPAT (keep for other pages)
   ============================================ */
.wrap-auth {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-login {
    padding: 1.5rem 1rem;
    background-color: #282725;
    border: 1px solid #D0993D66;
    border-radius: 24px;
    margin: auto;
    width: 100%;
    max-width: 400px;
}

.card-login .header {
    text-align: center;
    color: #8D8D8D;
}

.card-login .header .title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-login .header p {
    font-size: 14px;
    font-weight: 500;
}

/* ========== Additional Auth Styles ========== */

/* Form Row (side-by-side fields) */
.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .auth-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Required asterisk */
.auth-required {
    color: #ef4444;
    font-weight: 600;
}

/* Disabled button state */
.auth-btn--disabled,
.auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading spinner */
.auth-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

/* Logo text in auth pages */
.auth-logo .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #cda429;
    margin-left: 0.5rem;
}

.auth-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Info alert variant */
.auth-alert--info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

/* Verified badge animation */
.auth-verified {
    color: #22c55e !important;
    animation: auth-pulse-green 2s ease-in-out infinite;
}

@keyframes auth-pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
