:root {
    --gold: #F59E0B;
    --blue: #38BDF8;
    --dark: #0F172A;
    --white: #F8FAFC;
    --slate-400: #94A3B8;
    --slate-700: #334155;
    --red: #f87171;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER */
header {
    background: var(--dark);
    padding: 14px 0;
    border-bottom: 1px solid #1E293B;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo svg {
    width: 56px;
    height: 56px;
    display: block;
}

.brand-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.brand-text span:first-child {
    color: var(--blue);
}

.brand-text span:last-child {
    color: var(--gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    min-width: 140px;
    text-align: center;
    display: inline-block;
    font-family: inherit;
}

.btn-outline {
    color: var(--white);
    border-color: var(--slate-700);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-blue {
    background: var(--blue);
    color: var(--dark);
    border-color: var(--blue);
}

.btn-blue:hover {
    background: #0ea5e9;
    border-color: #0ea5e9;
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: #d97706;
    border-color: #d97706;
    transform: translateY(-2px);
}

/* AUTH MAIN */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
        var(--white);
    padding: 60px 0;
}

.auth-main .container {
    width: 100%;
}

.auth-card {
    max-width: 420px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 44px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.auth-head {
    text-align: center;
    margin-bottom: 32px;
}

.auth-head h1 {
    font-size: 30px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.auth-head p {
    color: var(--slate-700);
    font-size: 15px;
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
}

.field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.required {
    color: var(--gold);
}

.field input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--dark);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.field input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.field input::placeholder {
    color: #94a3b8;
}

.field input.invalid {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.password-wrap {
    position: relative;
}

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

.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    padding: 4px;
}

.toggle-password:hover {
    opacity: 1;
}

.error {
    font-size: 13px;
    color: var(--red);
    margin-top: 6px;
    min-height: 18px;
    display: block;
}

.form-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid var(--red);
    color: var(--red);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
}

/* FOOTER */
footer {
    background: var(--dark);
    padding: 40px 0;
    border-top: 1px solid #1E293B;
}

footer p {
    color: var(--slate-400);
    font-size: 14px;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .auth-head h1 {
        font-size: 24px;
    }

    .brand-logo svg {
        width: 44px;
        height: 44px;
    }

    .brand-text {
        font-size: 20px;
    }

    .nav-actions .btn {
        padding: 8px 14px;
        font-size: 13px;
        min-width: auto;
    }
}