@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Fira+Code:wght@400;500;600&display=swap');

:root {
    --bg:          #16141a;
    --surface:     #1e1c24;
    --card:        #24222c;
    --border:      rgba(255,255,255,.06);
    --border-hi:   rgba(255,255,255,.10);
    --text:        #eae8ef;
    --text2:       #b0adb8;
    --dim:         #6e6b78;
    --muted:       #44414d;
    --green:       #6ee7b7;
    --green-dark:  #34d399;
    --green-bg:    rgba(110,231,183,.06);
    --green-br:    rgba(110,231,183,.22);
    --red:         #fca5a5;
    --red-bg:      rgba(252,165,165,.06);
    --red-br:      rgba(252,165,165,.18);
    --sans:        'Sora', system-ui, sans-serif;
    --mono:        'Fira Code', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(110,231,183,.03) 0%, transparent 70%);
}

/* ── Wrapper ── */
.auth-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 24px;
}

/* ── Ambient glow ── */
.auth-ambient {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52,211,153,.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Card ── */
.auth-card {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px 36px;
    box-shadow: 0 8px 40px rgba(0,0,0,.35);
}

/* ── Logo ── */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-icon svg { width: 18px; height: 18px; }

.logo-text {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -.03em;
}

/* ── Headings ── */
.auth-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: 6px;
}

.auth-sub {
    font-size: 13px;
    color: var(--dim);
    margin-bottom: 28px;
}

/* ── Error / Success messages ── */
.auth-error {
    background: var(--red-bg);
    border: 1px solid var(--red-br);
    color: var(--red);
    font-size: 12px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.auth-success {
    background: var(--green-bg);
    border: 1px solid var(--green-br);
    color: var(--green);
    font-size: 12px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.auth-success a { color: var(--green-dark); text-decoration: underline; }

/* ── Form ── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text2);
}

.form-group input {
    font-family: var(--sans);
    font-size: 14px;
    padding: 12px 16px;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border-hi);
    border-radius: 10px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.form-group input::placeholder {
    color: var(--muted);
}

.form-group input:focus {
    border-color: var(--green-br);
    box-shadow: 0 0 0 3px rgba(110,231,183,.08);
}

/* ── Button ── */
.auth-btn {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    padding: 13px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: var(--bg);
    box-shadow: 0 2px 12px rgba(52,211,153,.25);
    margin-top: 4px;
}

.auth-btn:hover {
    box-shadow: 0 4px 20px rgba(52,211,153,.35);
    transform: translateY(-1px);
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(52,211,153,.2);
}

/* ── Footer link ── */
.auth-footer {
    text-align: center;
    font-size: 13px;
    color: var(--dim);
    margin-top: 24px;
}
.auth-footer a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}
.auth-footer a:hover {
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .auth-wrapper { padding: 16px; }
    .auth-card { padding: 32px 24px 28px; }
    .auth-title { font-size: 20px; }
}
