body.login-page {
    background: #07080d;
}

.login-main {
    min-height: calc(100vh - 74px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 16px;
    overflow: hidden;
}

.login-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/rustic-table.jpg") center/cover no-repeat;
    filter: blur(4px) brightness(1.08);
    transform: scale(1.05);
}

.login-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 8, 12, 0.68);
}

.login-section {
    width: 100%;
    position: relative;
    z-index: 2;
}

.login-card {
    width: min(980px, 100%);
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(214, 175, 55, 0.2);
    background: #1a140e;
    box-shadow: 0 35px 55px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-visual {
    position: relative;
    min-height: 560px;
}

.login-visual > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.login-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 12, 0.62),
        rgba(10, 10, 12, 0.18)
    );
}

.login-branding {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 26px;
    z-index: 2;
}

.login-branding img {
    width: 220px;
    max-width: 100%;
    display: block;
}

.login-branding p {
    margin: 14px 0 0;
    color: rgba(238, 231, 217, 0.92);
    font-size: 1.02rem;
    line-height: 1.65;
}

.login-form-wrap {
    background: #20160f;
    padding: 48px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-wrap h1 {
    margin: 0;
    font-family: "Oswald", sans-serif;
    font-size: 2.2rem;
    color: #f2e9dd;
}

.login-form-wrap > p {
    margin: 6px 0 0;
    color: #a79786;
    font-size: 1.05rem;
}

.login-form {
    margin-top: 28px;
    display: grid;
    gap: 10px;
}

.login-form label {
    color: #ece4d9;
    font-size: 1rem;
    font-weight: 600;
}

.login-form input {
    height: 50px;
    border: 1px solid rgba(214, 175, 55, 0.2);
    border-radius: 12px;
    background: rgba(14, 10, 8, 0.58);
    color: #f5f1ea;
    padding: 0 14px;
    font-size: 1.02rem;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.login-form input::placeholder {
    color: #8f8376;
}

.login-form input:focus {
    border-color: rgba(214, 175, 55, 0.78);
    box-shadow: 0 0 0 3px rgba(214, 175, 55, 0.12);
}

.forgot-password {
    margin-top: 2px;
    text-align: right;
    color: #cfa94c;
    font-weight: 600;
    font-size: 0.96rem;
}

.login-submit {
    margin-top: 8px;
    border: 0;
    height: 50px;
    border-radius: 12px;
    background: #d6af37;
    color: #231b0c;
    font-size: 1.24rem;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.login-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.password-match-hint {
    margin: 6px 0 0;
    min-height: 1.35rem;
    font-size: 0.92rem;
    color: #8a7e70;
    line-height: 1.35;
}

.password-match-hint.is-error {
    color: #c53030;
    font-weight: 600;
}

.signup-text {
    margin: 20px 0 0;
    text-align: center;
    color: #b6a99b;
    font-size: 1.03rem;
}

.signup-text a {
    color: #d6af37;
    font-weight: 700;
}

@media (max-width: 1050px) {
    .login-main {
        padding: 40px 16px;
    }

    .login-card {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .login-visual {
        min-height: 280px;
    }

    .login-branding {
        left: 20px;
        right: 20px;
        bottom: 18px;
    }

    .login-branding img {
        width: 180px;
    }

    .login-branding p {
        margin-top: 8px;
        font-size: 0.92rem;
        line-height: 1.5;
    }
}

@media (max-width: 640px) {
    .login-main {
        padding: 28px 12px;
    }

    .login-form-wrap {
        padding: 28px 18px;
    }

    .login-form-wrap h1 {
        font-size: 1.8rem;
    }

    .login-form-wrap > p {
        font-size: 0.95rem;
    }
}

/* Password visibility toggle (login/register/reset) */
.password-field {
    position: relative;
    width: 100%;
    display: block;
}

.password-field input {
    padding-right: 52px; /* leave space for eye button */
    width: 100%;
    box-sizing: border-box;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: rgba(214, 175, 55, 0.95);
    z-index: 5;
}

.password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 175, 55, 0.18);
    border-radius: 8px;
}

.password-toggle-icon {
    width: 18px;
    height: 18px;
}
