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

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: fixed;
}

:root {
    --navy: #07213e;
    --navy-light: #0d2d52;

    --gold: #e9b856;
    --gold-hover: #d4a649;

    --white: #ffffff;
    --offwhite: #f4f7fb;

    --text: #1e293b;
    --text-soft: #64748b;
}

body {
    font-family: "Inter", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
/* background glow */

body::before,
body::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    background: rgba(233, 184, 86, 0.06);

    filter: blur(100px);

    z-index: 0;
}

body::before {
    top: -120px;
    left: -120px;
}

body::after {
    bottom: -120px;
    right: -120px;
}

.auth-wrapper {
    width: 100%;
    max-width: 430px;
    position: relative;
    z-index: 2;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);

    backdrop-filter: blur(20px);

    border: 1px solid rgba(233, 184, 86, 0.2);

    border-radius: 32px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(7, 33, 62, 0.25),
        0 0 1px rgba(233, 184, 86, 0.3);
}

/* header */

.auth-header {
    padding: 2rem 2rem 1.2rem;

    text-align: center;

    background: linear-gradient(
        135deg,
        rgba(233, 184, 86, 0.05) 0%,
        rgba(7, 33, 62, 0.02) 100%
    );
}

.logo {
    width: 70px;
    height: 70px;

    border-radius: 20px;

    margin: 0 auto 1rem;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.6rem;
    font-weight: 800;

    background: linear-gradient(135deg, var(--gold), #f0c966);

    color: var(--navy);

    box-shadow: 0 15px 35px rgba(233, 184, 86, 0.4);
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 800;

    color: var(--navy);
    letter-spacing: -0.5px;
}

.auth-subtitle {
    margin-top: 0.4rem;

    color: var(--text-soft);

    font-size: 0.8rem;

    line-height: 1.6;
}

/* body */

.auth-body {
    padding: 0 2rem 1.8rem;
}

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

.alert {
    padding: 0.8rem 1rem;

    border-radius: 10px;

    margin-bottom: 1rem;

    font-size: 0.8rem;

    border-left: 4px solid;
}

.alert-success {
    background: #ecfdf3;
    border-left-color: #10b981;
    color: #047857;
}

.alert-error {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #b91c1c;
}

/* form */

.form-label {
    display: block;

    margin-bottom: 0.5rem;

    font-size: 0.8rem;
    font-weight: 600;

    color: var(--navy);

    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;

    height: 48px;

    border: 1.5px solid #e5ecf4;

    border-radius: 12px;

    padding: 0 1rem;

    font-size: 0.9rem;

    font-family: Inter, sans-serif;

    outline: none;

    transition: 0.3s ease;

    background: #f9fbfd;
}

.form-input:focus {
    border-color: var(--gold);
    background: white;
    box-shadow:
        0 0 0 5px rgba(233, 184, 86, 0.1),
        0 2px 8px rgba(7, 33, 62, 0.08);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 1.2rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    font-size: 0.8rem;

    color: var(--text-soft);
}

.remember input {
    accent-color: var(--gold);
}

.form-link {
    color: var(--gold);

    text-decoration: none;

    font-size: 0.8rem;
    font-weight: 600;

    transition: 0.2s ease;
}

.form-link:hover {
    color: var(--gold-hover);
    text-decoration: underline;
}

/* button */

.btn {
    width: 100%;

    height: 48px;

    border: none;

    border-radius: 12px;

    cursor: pointer;

    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2px;

    color: var(--navy);

    background: linear-gradient(135deg, var(--gold), #f0c966);

    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    box-shadow: 0 12px 32px rgba(233, 184, 86, 0.32);
}

.btn:hover {
    transform: translateY(-3px);

    box-shadow: 0 18px 40px rgba(233, 184, 86, 0.4);
}

/* footer */

.auth-footer {
    padding: 1.2rem 2rem;

    text-align: center;

    border-top: 1px solid rgba(233, 184, 86, 0.15);

    font-size: 0.85rem;

    color: var(--text-soft);

    background: rgba(233, 184, 86, 0.02);
}

.auth-link {
    color: var(--gold);

    text-decoration: none;

    font-weight: 700;

    transition: 0.2s ease;
}

.auth-link:hover {
    color: var(--gold-hover);
}

@media (max-width: 480px) {
    body {
        padding: 1.2rem;
        align-items: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .auth-card {
        border-radius: 24px;
    }

    .auth-header {
        padding: 1.8rem 1.5rem 1rem;
    }

    .auth-body {
        padding: 0 1.5rem 1.5rem;
    }

    .auth-footer {
        padding: 1rem 1.5rem;
    }
}
