:root {
    --brown-dark: #5e3218;
    --brown: #80583b;

    --sage: #aebda5;
    --sage-dark: #71846c;

    --cream: #f7f0e8;
    --surface: #fffdf9;

    --text: #30251f;
    --muted: #78695f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at top,
            #fffaf4,
            var(--cream)
        );
}

.auth-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px 20px;

    position: relative;
}

.back-link {
    position: absolute;

    top: 25px;
    left: 30px;

    text-decoration: none;

    color: var(--brown-dark);

    font-weight: bold;
}

.auth-card {
    width: 100%;
    max-width: 430px;

    background: var(--surface);

    border-radius: 28px;

    padding: 38px;

    box-shadow:
        0 18px 50px
        rgba(94, 50, 24, 0.12);
}

.auth-logo {
    width: 82px;
    height: 82px;

    display: block;

    margin:
        0 auto
        20px;

    border-radius: 50%;
}

.auth-card h1 {
    margin: 0;

    text-align: center;

    color: var(--brown-dark);

    font-size: 32px;
}

.auth-subtitle {
    margin:
        8px auto
        30px;

    text-align: center;

    color: var(--muted);

    line-height: 1.5;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin:
        14px 0
        7px;

    font-size: 13px;

    font-weight: bold;

    color: var(--brown-dark);
}

input {
    width: 100%;

    padding: 14px 15px;

    border:
        1px solid
        #ddcfc2;

    border-radius: 13px;

    background: white;

    font-size: 15px;

    outline: none;
}

input:focus {
    border-color: var(--sage-dark);

    box-shadow:
        0 0 0 3px
        rgba(113, 132, 108, 0.12);
}

.auth-button {
    margin-top: 24px;

    min-height: 50px;

    border: 0;

    border-radius: 999px;

    background: var(--brown-dark);

    color: white;

    font-weight: bold;

    font-size: 15px;

    cursor: pointer;
}

.auth-button:hover {
    background: #4c2814;
}

.forgot-link {
    display: block;

    margin-top: 18px;

    text-align: center;

    color: var(--sage-dark);

    font-size: 13px;

    text-decoration: none;
}

.auth-divider {
    display: flex;
    align-items: center;

    margin: 28px 0 16px;

    color: var(--muted);

    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";

    height: 1px;

    flex: 1;

    background: #e6dcd2;
}

.auth-divider span {
    padding: 0 12px;
}

.secondary-button {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        #d8c8ba;

    border-radius: 999px;

    color: var(--brown-dark);

    text-decoration: none;

    font-weight: bold;

    font-size: 14px;
}

@media (max-width: 520px) {

    .auth-page {
        padding:
            70px 14px
            30px;
    }

    .auth-card {
        padding:
            30px 22px;
    }

    .back-link {
        left: 18px;
    }
}

.form-message {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.form-message.success {
    color: #31543b;
    background: #e7f1e8;
    border: 1px solid #afcbb4;
}

.form-message.error {
    color: #7a2e25;
    background: #f9e8e5;
    border: 1px solid #dfb4ae;
}

.auth-button:disabled {
    cursor: wait;
    opacity: 0.65;
}