.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.55), transparent 28%),
        radial-gradient(circle at 85% 80%, rgba(123,91,59,.10), transparent 30%),
        linear-gradient(135deg, #eee2cc 0%, #e7d6b9 48%, #d9c4a1 100%);
    position: relative;
    overflow-x: hidden;
}

.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .28;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 3px,
            rgba(91,66,42,.035) 4px
        );
}

.login-page-shell {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    position: relative;
}

.login-card {
    width: min(100%, 450px);
    background:
        linear-gradient(
            rgba(255,252,242,.96),
            rgba(250,242,224,.96)
        );
    border: 1px solid rgba(113,82,50,.28);
    box-shadow:
        0 24px 60px rgba(72,48,27,.18),
        0 5px 15px rgba(72,48,27,.08);
    padding: 42px 44px 36px;
    position: relative;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(128,94,57,.12);
    pointer-events: none;
}

.login-card-top {
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-brand {
    display: inline-block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -.5px;
    color: #5b402b;
}

.login-line {
    width: 70px;
    height: 1px;
    background: #9a7651;
    margin: 13px auto 9px;
}

.login-small-title {
    font-size: 9px;
    letter-spacing: 3px;
    color: #977653;
}

.login-intro {
    text-align: center;
    margin: 34px 0 27px;
    position: relative;
    z-index: 1;
}

.login-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border: 1px solid #b59670;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a5738;
    font-size: 22px;
    background: rgba(255,250,239,.65);
}

.login-intro h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 500;
    color: #3e2c1e;
    margin-bottom: 8px;
}

.login-intro p {
    color: #806b55;
    font-size: 14px;
    line-height: 1.65;
}

.login-message {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.4;
}

.login-message-error {
    background: #f5e1d9;
    border: 1px solid #d5a99b;
    color: #7d4337;
}

.message-icon {
    font-weight: bold;
}

.login-form {
    position: relative;
    z-index: 1;
}

.login-field {
    margin-bottom: 19px;
}

.login-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    color: #65482f;
    margin: 0 0 7px 2px;
}

.input-paper {
    display: flex;
    align-items: center;
    min-height: 50px;
    border: 1px solid #c8b18f;
    background: rgba(255,252,244,.72);
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.input-paper:focus-within {
    border-color: #896443;
    background: #fffdf7;
    box-shadow: 0 0 0 3px rgba(137,100,67,.10);
}

.input-icon {
    width: 45px;
    text-align: center;
    color: #987654;
    font-size: 17px;
    flex-shrink: 0;
}

.input-paper input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #39291e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    padding: 0 8px 0 0;
}

.input-paper input::placeholder {
    color: #b19b7e;
}

.password-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #987654;
    cursor: pointer;
    flex-shrink: 0;
    transition: color .2s ease;
}

.password-toggle:hover {
    color: #5f422c;
}

.login-submit {
    width: 100%;
    min-height: 51px;
    border: 1px solid #6d4c30;
    background: #725236;
    color: #fff9ef;
    cursor: pointer;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    letter-spacing: .3px;
    transition:
        background .2s ease,
        transform .15s ease,
        box-shadow .2s ease;
}

.login-submit:hover {
    background: #604329;
    box-shadow: 0 7px 18px rgba(83,58,37,.16);
}

.login-submit:active {
    transform: translateY(1px);
}

.submit-arrow {
    font-size: 19px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 27px 0 21px;
    color: #ad987d;
    font-size: 11px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    height: 1px;
    background: #d8c6aa;
    flex: 1;
}

.login-register {
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-register p {
    color: #8b755e;
    font-size: 12px;
    margin-bottom: 7px;
}

.register-link {
    color: #65472e;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #b39470;
    padding-bottom: 2px;
    transition: color .2s ease, border-color .2s ease;
}

.register-link:hover {
    color: #3f2c1d;
    border-color: #6d4c30;
}

.login-stamp {
    position: absolute;
    right: 19px;
    bottom: 17px;
    width: 43px;
    height: 43px;
    border: 1px dashed #ad8b65;
    border-radius: 50%;
    transform: rotate(8deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a27d57;
    font-family: Georgia, serif;
    font-size: 10px;
    opacity: .65;
}

.login-stamp::before,
.login-stamp::after {
    content: "•";
    margin: 0 3px;
}

.login-bottom-note {
    margin-top: 19px;
    color: #7f684e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-style: italic;
    opacity: .85;
}

.login-decoration {
    position: absolute;
    color: rgba(112,79,48,.24);
    font-size: 28px;
}

.login-decoration-top {
    top: 10%;
    left: 9%;
}

@media (max-width: 600px) {
    .login-page-shell {
        padding: 28px 15px;
    }

    .login-card {
        padding: 34px 25px 31px;
    }

    .login-brand {
        font-size: 27px;
    }

    .login-intro {
        margin-top: 29px;
    }

    .login-decoration {
        display: none;
    }
}

@media (max-width: 380px) {
    .login-card {
        padding-left: 19px;
        padding-right: 19px;
    }

    .login-intro h1 {
        font-size: 24px;
    }
}
