/* Auth Pages Styles */

:root {
    --auth-cream: #fdf8f4;
    --auth-cream-dark: #f5ede3;
    --auth-cream-deeper: #ede0d0;
    --auth-white: #ffffff;
    --auth-orange: #e85d04;
    --auth-orange-light: #f48c06;
    --auth-orange-pale: #fef0e3;
    --auth-orange-dark: #c44d00;
    --auth-text-dark: #111827;
    --auth-text-mid: #374151;
    --auth-text-light: #6b7280;
    --auth-border: #e5d9ce;
}

.auth-page {
    min-height: 100vh;
    margin: 0;
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(232, 93, 4, 0.12), transparent 24%),
        radial-gradient(circle at bottom right, rgba(244, 140, 6, 0.1), transparent 22%),
        linear-gradient(180deg, #fffdfb 0%, var(--auth-cream) 45%, var(--auth-cream-dark) 100%);
    font-family: "Epilogue", sans-serif;
    color: var(--auth-text-dark);
}

.auth-shell,
.auth-container {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(400px, 460px);
    gap: 24px;
    min-height: calc(100vh - 56px);
    align-items: stretch;
}

.auth-container {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-showcase,
.auth-card {
    border-radius: 30px;
    box-shadow: 0 26px 70px rgba(17, 24, 39, 0.08);
    border: 1px solid rgba(229, 217, 206, 0.9);
}

.auth-showcase {
    position: relative;
    overflow: hidden;
    padding: 40px;
    background: linear-gradient(145deg, #fffaf6 0%, #fef0e3 58%, #fffefc 100%);
    color: var(--auth-text-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(17, 24, 39, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 39, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.7;
}

.auth-showcase::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -50px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(232, 93, 4, 0.16), transparent 70%);
}

.auth-showcase-top,
.auth-showcase-bottom {
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.auth-logo .logo-img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--auth-orange-pale);
    border: 1px solid rgba(232, 93, 4, 0.2);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--auth-orange);
}

.auth-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--auth-orange);
}

.auth-showcase h1 {
    margin: 22px 0 16px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3rem, 5vw, 4.9rem);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.auth-showcase p {
    max-width: 54ch;
    color: var(--auth-text-mid);
    font-size: 1rem;
    line-height: 1.85;
}

.auth-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.auth-metric {
    border-radius: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(229, 217, 206, 0.9);
    backdrop-filter: blur(10px);
}

.auth-metric-value {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--auth-text-dark);
}

.auth-metric-label {
    font-size: 0.75rem;
    color: var(--auth-text-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-points {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.auth-point {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(229, 217, 206, 0.9);
}

.auth-point strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.98rem;
}

.auth-point span {
    color: var(--auth-text-mid);
    font-size: 0.92rem;
    line-height: 1.7;
}

.auth-point-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: var(--auth-orange);
    color: #fff;
    font-weight: 700;
    flex: 0 0 34px;
    box-shadow: 0 10px 20px rgba(232, 93, 4, 0.18);
}

.auth-card {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(18px);
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    margin-bottom: 26px;
}

.auth-container .auth-card {
    width: min(520px, 100%);
}

.auth-header h1,
.auth-header h2 {
    margin: 14px 0 10px;
    font-family: "Cormorant Garamond", serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.auth-header p {
    color: var(--auth-text-light);
    line-height: 1.75;
    font-size: 0.96rem;
}

.auth-form {
    margin-bottom: 18px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--auth-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input {
    width: 100%;
    padding: 0.98rem 1rem;
    font-size: 1rem;
    border: 1px solid rgba(229, 217, 206, 1);
    border-radius: 16px;
    background: rgba(255,255,255,0.98);
    transition: all 0.2s ease;
    color: var(--auth-text-dark);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(232, 93, 4, 0.5);
    box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.12);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 0.35rem 0 1.25rem;
}

.forgot-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--auth-orange);
    text-decoration: none;
}

.forgot-link:hover,
.auth-switch a:hover,
.auth-terms a:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 22px 0;
    color: #9ca3af;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid rgba(229, 217, 206, 1);
}

.divider span { padding: 0 14px; }

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid rgba(229, 217, 206, 1);
    border-radius: 16px;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--auth-text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-google:hover {
    transform: translateY(-1px);
    border-color: rgba(232, 93, 4, 0.36);
    background: #fffaf6;
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.06);
}

.btn-google:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-google svg {
    width: 20px;
    height: 20px;
}

.btn.btn-primary {
    width: 100%;
    padding: 1rem 1rem;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--auth-orange) 0%, var(--auth-orange-light) 100%);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: 0 18px 34px rgba(232, 93, 4, 0.2);
}

.btn.btn-primary:hover {
    background: linear-gradient(135deg, var(--auth-orange-dark) 0%, var(--auth-orange) 100%);
}

.auth-error,
.auth-success {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
}

.auth-error {
    background: rgba(254, 226, 226, 0.8);
    border: 1px solid rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

.auth-success {
    background: rgba(220, 252, 231, 0.88);
    border: 1px solid rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.auth-terms,
.auth-switch {
    text-align: center;
    color: var(--auth-text-light);
    font-size: 0.9rem;
}

.auth-terms {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.auth-switch a,
.auth-terms a {
    color: var(--auth-orange);
    font-weight: 700;
    text-decoration: none;
}

.verify-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-icon svg {
    width: 32px;
    height: 32px;
}

.verify-icon.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.verify-icon.error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

@media (max-width: 980px) {
    .auth-page {
        padding: 18px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-showcase {
        min-height: 0;
    }

    .auth-container {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .auth-card,
    .auth-showcase {
        padding: 24px;
        border-radius: 24px;
    }

    .auth-showcase h1 {
        font-size: 2.8rem;
    }

    .auth-metrics {
        grid-template-columns: 1fr;
    }

    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
