body.login {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

body.login div#login {
    width: 420px;
    max-width: calc(100vw - 40px);
    padding: 48px 0 0;
}

body.login #login h1 a,
body.login .login h1 a {
    background-image: url('../images/logo.png');
    background-size: contain;
    width: 220px;
    height: 72px;
    margin-bottom: 20px;
}

body.login .message,
body.login #login_error,
body.login .success {
    border-left-color: #0f5b66;
    border-radius: 10px;
}

body.login form {
    border-radius: 16px;
    border: 1px solid #dbe3eb;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

body.login .button-primary {
    background: #0f5b66;
    border-color: #0f5b66;
    box-shadow: none;
    text-shadow: none;
}

body.login .button-primary:hover,
body.login .button-primary:focus {
    background: #0b4952;
    border-color: #0b4952;
}

.bb-login-page {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.bb-login-panel {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border: 1px solid #dbe3eb;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    padding: 32px;
}

.bb-login-page__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.bb-login-page__logo {
    width: 200px;
    max-width: 100%;
    height: auto;
}

.bb-login-title {
    margin: 0;
    font-size: 1.8rem;
    color: #111827;
}

.bb-login-subtitle {
    margin: 8px 0 20px;
    color: #4b5563;
}

.bb-login-notice {
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #f5c2c7;
    border-radius: 10px;
    background: #fff1f2;
    color: #9f1239;
}

#bb-custom-loginform p {
    margin-bottom: 14px;
}

#bb-custom-loginform label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #111827;
}

#bb-custom-loginform input[type='text'],
#bb-custom-loginform input[type='password'] {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
}

#bb-custom-loginform .login-submit {
    margin-top: 8px;
}

#bb-login-submit {
    min-height: 44px;
    border-radius: 10px;
    border: none;
    background: #0f5b66;
    color: #ffffff;
    font-weight: 700;
    padding: 0 18px;
    cursor: pointer;
}

#bb-login-submit:hover,
#bb-login-submit:focus {
    background: #0b4952;
}

.bb-login-links {
    margin: 12px 0 0;
}

.bb-login-links a {
    color: #0f5b66;
    text-decoration: none;
    font-weight: 600;
}

.bb-login-links a:hover,
.bb-login-links a:focus {
    text-decoration: underline;
}
