:root {
    --green-dark: #0f3f2f;
    --green-main: #1f6f4a;
    --green-soft: #dfeee4;
    --cream: #f5f0e4;
    --paper: #fffdf7;
    --text: #16372c;
    --muted: #5f706a;
    --error: #b3263a;
    --success: #1f6f4a;
    --shadow: 0 24px 70px rgba(15, 63, 47, 0.22);
    --bread-field: url("/assets/brand/bread-field.png");
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
}

.login-page {
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    background:
            linear-gradient(rgba(255, 250, 238, 0.76), rgba(245, 236, 216, 0.82)),
            var(--bread-field) center / cover fixed no-repeat;
}

.login-page::before {
    content: "";
    position: fixed;
    inset: -24px;
    z-index: 0;
    pointer-events: none;
    background: var(--bread-field) center / cover no-repeat;
    filter: blur(2px);
    opacity: 0.42;
    transform: scale(1.03);
}

.login-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
            radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.52), transparent 30%),
            linear-gradient(180deg, rgba(255, 253, 247, 0.68), rgba(244, 229, 197, 0.32));
}

.login-layout {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    padding: 32px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 460px;
    padding: 36px 34px 28px;
    border-radius: 24px;
    background: rgba(255, 253, 247, 0.9);
    border: 1px solid rgba(207, 161, 82, 0.28);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(207, 161, 82, 0.24);
    border-radius: 18px;
    pointer-events: none;
}

.login-decor {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(1px);
}

.login-decor-one {
    width: 160px;
    height: 160px;
    top: -80px;
    right: -70px;
    background: rgba(31, 111, 74, 0.14);
}

.login-decor-two {
    width: 120px;
    height: 120px;
    left: -54px;
    bottom: 52px;
    background: rgba(211, 145, 47, 0.18);
}

.login-brand,
.login-form,
.login-home-link,
.login-footer-text {
    position: relative;
    z-index: 1;
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo-mark {
    width: min(220px, 64vw);
    height: auto;
    margin: 0 auto 12px;
    display: block;
    border-radius: 20px;
    background: rgba(255, 253, 247, 0.78);
    border: 1px solid rgba(207, 161, 82, 0.24);
    box-shadow: 0 16px 34px rgba(98, 57, 20, 0.14);
    overflow: hidden;
}

.login-logo-mark img {
    width: 100%;
    height: auto;
    display: block;
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(211, 145, 47, 0.12);
    border: 1px solid rgba(207, 161, 82, 0.24);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6d3a13;
}

.login-brand h1 {
    margin: 0;
    font-size: clamp(34px, 7vw, 48px);
    line-height: 0.95;
    font-family: Georgia, "Times New Roman", serif;
    color: #4b260e;
}

.login-description {
    margin: 16px auto 0;
    max-width: 330px;
    color: #5f5144;
    font-size: 15px;
    line-height: 1.45;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field > span:first-child {
    font-size: 14px;
    font-weight: 900;
    color: #4b260e;
}

.login-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(207, 161, 82, 0.34);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            background 0.2s ease;
}

.login-field input::placeholder {
    color: #8a9992;
}

.login-field input:focus {
    border-color: #d3912f;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(211, 145, 47, 0.16);
}

.password-wrap {
    position: relative;
    display: block;
}

.password-wrap input {
    padding-right: 54px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 12px;
    background: rgba(211, 145, 47, 0.12);
    color: #4b260e;
    cursor: pointer;
    font-size: 16px;
    transition:
            background 0.2s ease,
            transform 0.2s ease;
}

.password-toggle:hover {
    background: rgba(211, 145, 47, 0.2);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.96);
}

.login-message {
    margin: 0;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
}

.login-error {
    background: rgba(179, 38, 58, 0.1);
    border: 1px solid rgba(179, 38, 58, 0.2);
    color: var(--error);
}

.login-success {
    background: rgba(31, 111, 74, 0.1);
    border: 1px solid rgba(31, 111, 74, 0.22);
    color: var(--success);
}

.login-button {
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    border: 0;
    border-radius: 17px;
    background: linear-gradient(135deg, #d3912f, #6d3a13);
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(109, 58, 19, 0.24);
    transition:
            transform 0.18s ease,
            box-shadow 0.18s ease,
            filter 0.18s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(109, 58, 19, 0.3);
    filter: brightness(1.03);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 10px 20px rgba(109, 58, 19, 0.22);
}

.login-home-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 18px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4b260e;
    font-size: 14px;
    font-weight: 800;
    font-family: inherit;
    text-decoration: none;
    opacity: 0.82;
    cursor: pointer;
    transition:
            opacity 0.2s ease,
            transform 0.2s ease;
}

.login-home-link:hover {
    opacity: 1;
    transform: translateX(-2px);
}

.login-footer-text {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(31, 111, 74, 0.12);
    color: rgba(22, 55, 44, 0.62);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 520px) {
    .login-layout {
        padding: 18px;
        align-items: center;
    }

    .login-card {
        max-width: 100%;
        padding: 30px 22px 24px;
        border-radius: 26px;
    }

    .login-card::before {
        inset: 9px;
        border-radius: 21px;
    }

    .login-logo-mark {
        width: min(190px, 68vw);
    }

    .login-brand {
        margin-bottom: 24px;
    }

    .login-description {
        font-size: 14px;
    }

    .login-field input {
        min-height: 50px;
        border-radius: 15px;
    }

    .login-button {
        min-height: 52px;
    }
}

@media (max-width: 360px) {
    .login-layout {
        padding: 12px;
    }

    .login-card {
        padding: 26px 16px 22px;
    }

    .login-brand h1 {
        font-size: 34px;
    }

    .login-eyebrow {
        font-size: 11px;
    }

    .login-description {
        max-width: 260px;
    }
}
