/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================
   PAGE
========================= */

body {
    min-height: 100vh;
    min-height: 100dvh;

    font-family: Georgia, "Times New Roman", serif;

    background: #f7f3ed;
    color: #2d2926;

    display: flex;
    align-items: center;
    justify-content: center;

    -webkit-font-smoothing: antialiased;
}


/* =========================
   LOGIN CONTAINER
========================= */

.login-container {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}


/* =========================
   LOGIN BOX
========================= */

.login-box {
    width: 100%;
    max-width: 420px;

    text-align: center;

    padding: 48px 40px;
}


/* =========================
   HEADING
========================= */

h1 {
    font-size: clamp(2.2rem, 7vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.03em;

    margin-bottom: 12px;
}


/* =========================
   SUBTITLE
========================= */

.subtitle {
    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.95rem;
    color: #77716b;

    margin-bottom: 36px;
}


/* =========================
   FORM
========================= */

form {
    width: 100%;
}

label {
    display: block;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;

    color: #625c56;

    text-align: left;

    margin-bottom: 8px;
}


/* =========================
   PASSWORD INPUT
========================= */

input {
    width: 100%;

    height: 52px;

    padding: 0 16px;

    border: 1px solid #d8d1c8;
    border-radius: 8px;

    background: #fffdf9;

    color: #2d2926;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

input::placeholder {
    color: #aaa39b;
}

input:focus {
    border-color: #9b9187;

    box-shadow: 0 0 0 3px rgba(155, 145, 135, 0.12);
}


/* =========================
   HINT
========================= */

.hint {
    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.78rem;
    line-height: 1.5;

    color: #817a73;

    margin-top: 14px;
}


/* =========================
   DISCLAIMER
========================= */

.disclaimer {
    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.72rem;

    color: #aaa39b;

    margin-top: 4px;
}


/* =========================
   BUTTON
========================= */

button {
    width: 100%;
    height: 52px;

    margin-top: 24px;

    border: none;
    border-radius: 8px;

    background: #2d2926;
    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background 0.2s ease;
}

button:hover {
    background: #403a35;
}

button:active {
    transform: scale(0.98);
}


/* =========================
   ERROR MESSAGE
========================= */

.error-message {
    min-height: 20px;

    margin-top: 14px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;

    color: #9b5757;
}


/* =========================
   MOBILE / TABLET
========================= */

@media (max-width: 600px) {

    .login-container {
        padding: 20px;
    }

    .login-box {
        padding: 32px 20px;
    }

    h1 {
        margin-bottom: 10px;
    }

    .subtitle {
        margin-bottom: 30px;
    }

    input,
    button {
        height: 54px;
    }
}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    * {
        transition: none !important;
    }
}