/* SmartRoaster AI — auth pages (Login / Register) */

.auth-body {
    min-height: 100vh;
    background: var(--bg-soft);
    display: flex;
    flex-direction: column;
}

.auth-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }

.auth-shell {
    position: relative;
    width: min(560px, 100% - 2rem);
    margin: 0 auto;
    padding: 2.6rem 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.auth-shell.wide { width: min(720px, 100% - 2rem); }

.auth-brand { margin-bottom: 2rem; }

.auth-card {
    width: 100%;
    background: var(--surface);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.4rem 2.4rem 2.1rem;
}

.auth-card h1 {
    font-size: 1.55rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: .4rem;
}
.auth-sub {
    text-align: center;
    font-size: .92rem;
    color: var(--ink-3);
    margin-bottom: 1.9rem;
}

.form-field { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-field label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: .38rem;
}
.form-field input,
.form-field select {
    width: 100%;
    font: inherit;
    font-size: .93rem;
    color: var(--ink);
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: .72rem .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .14);
}
.form-field input::placeholder { color: #a8b3c4; }

.form-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    margin-bottom: 1.4rem;
}
.check {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--ink-2);
    cursor: pointer;
    font-size: .85rem;
}
.check input { width: 16px; height: 16px; accent-color: var(--indigo); cursor: pointer; }
.link { color: var(--indigo); font-weight: 600; }
.link:hover { text-decoration: underline; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--ink-3);
    font-size: .8rem;
    margin: 1.5rem 0;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.sso-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.sso-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-2);
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: .68rem .5rem;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease;
}
.sso-btn:hover { border-color: var(--indigo); transform: translateY(-2px); }
.sso-btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.auth-alt {
    text-align: center;
    font-size: .9rem;
    color: var(--ink-3);
    margin-top: 1.6rem;
}
.auth-foot { margin-top: 2rem; font-size: .8rem; color: var(--ink-3); }
.auth-foot a { color: var(--ink-3); }
.auth-foot a:hover { color: var(--indigo); }

/* --------- Register stepper --------- */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}
.stepper::before {
    content: "";
    position: absolute;
    top: 15px; left: 8%; right: 8%;
    height: 2px;
    background: var(--line);
    z-index: 0;
}
.step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    flex: 1;
}
.step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    background: var(--surface);
    border: 2px solid var(--line);
    color: var(--ink-3);
    transition: all .25s ease;
}
.step span:last-child { font-size: .68rem; font-weight: 600; color: var(--ink-3); text-align: center; }
.step.active .step-num {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px -4px rgba(99, 102, 241, .5);
}
.step.active span:last-child { color: var(--indigo); }
.step.done .step-num {
    background: rgba(16, 185, 129, .12);
    border-color: var(--emerald);
    color: var(--emerald);
}

.reg-step { display: none; }
.reg-step.active { display: block; animation: stepIn .35s ease; }
@keyframes stepIn {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: none; }
}

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.7rem;
}
.step-actions .btn { min-width: 130px; }

.plan-options { display: grid; gap: .8rem; }
.plan-option {
    display: flex;
    align-items: center;
    gap: .9rem;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.plan-option:hover { border-color: rgba(99, 102, 241, .5); }
.plan-option input { accent-color: var(--indigo); width: 17px; height: 17px; flex-shrink: 0; }
.plan-option strong { font-size: .95rem; display: block; }
.plan-option span { font-size: .8rem; color: var(--ink-3); }
.plan-option .plan-tag {
    margin-left: auto;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--indigo);
    background: rgba(99, 102, 241, .1);
    padding: .28rem .7rem;
    border-radius: 999px;
    flex-shrink: 0;
}
.plan-option:has(input:checked) {
    border-color: var(--indigo);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}

.terms-list { display: grid; gap: .9rem; }

@media (max-width: 560px) {
    .auth-card { padding: 1.8rem 1.3rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .sso-grid { grid-template-columns: 1fr; }
    .step span:last-child { display: none; }
    .step-actions .btn { min-width: 0; flex: 1; }
}
