/* TBPAL Login Page — Fluent Design 2
   Primary : #232e46
   Text    : #1e1e1e
   Accent  : #d9533e
*/

/* ── Reset ─────────────────────────────────────────────────────────────────── */
body.tbpal-login {
    background: #f3f3f3;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overscroll-behavior-y: none;
}

/* ── Two-column wrapper ─────────────────────────────────────────────────────── */
.tbpal-login-wrap {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ── Left: Cover ─────────────────────────────────────────────────────────────── */
.tbpal-login-cover {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #232e46;
}

.tbpal-cover-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tbpal-cover-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.tbpal-cover-slide.is-active {
    opacity: 1;
}

.tbpal-cover-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tbpal-cover-logo {
    position: absolute;
    top: 32px;
    left: 36px;
    z-index: 2;
}

.tbpal-cover-logo img {
    max-height: 48px;
    width: auto;
    display: block;
}

/* ── Cover heading + text ────────────────────────────────────────────────────── */
.tbpal-cover-content {
    position: absolute;
    left: 36px;
    right: 36px;
    top: calc(32px + 48px); /* logo top + logo max-height */
    z-index: 2;
}

.tbpal-cover-heading {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.tbpal-cover-text {
    font-family: 'Outfit', sans-serif;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    max-width: 420px;
}

/* ── Right: Login side ───────────────────────────────────────────────────────── */
.tbpal-login-side {
    width: 440px;
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: -4px 0 24px rgba(0,0,0,.10);
    position: relative;
    z-index: 10;
}

/* ── WordPress #login inside the side panel ─────────────────────────────────── */
#login {
    width: 100%;
    padding: 48px 40px;
    box-sizing: border-box;
}

/* Hide default WP logo */
#login h1 { display: none; }

/* Heading */
#login::before {
    content: 'Welcome back';
    display: block;
    font-family: 'Rubik', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 6px;
}

#login::after {
    content: 'Sign in to continue to the dashboard.';
    display: block;
    font-size: 13px;
    color: #6b6b6b;
    margin-bottom: 32px;
}

/* ── Fluent 2 form fields ───────────────────────────────────────────────────── */
#loginform,
#lostpasswordform {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.login label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 4px;
    letter-spacing: .01em;
}

.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    color: #1e1e1e;
    background: #f5f5f5;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    box-sizing: border-box;
    outline: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
    box-shadow: none;
    margin: 0 0 20px;
}

.login input[type="text"]:hover,
.login input[type="password"]:hover {
    border-color: #b0b0b0;
    background: #f0f0f0;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
    background: #ffffff;
    border-color: #d9533e;
    border-bottom-width: 2px;
    box-shadow: none;
}

/* Remember me */
.login .forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.login .forgetmenot label {
    margin: 0;
    font-weight: 400;
    font-size: 13px;
    color: #1e1e1e;
}

.login input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #d9533e;
    cursor: pointer;
}

/* ── Submit button — Fluent 2 filled ────────────────────────────────────────── */
.login #wp-submit,
.login .button-primary {
    width: 100%;
    height: 40px;
    background: #d9533e;
    border: none;
    border-radius: 4px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    letter-spacing: .02em;
    transition: background .15s, box-shadow .15s;
    box-shadow: 0 1px 2px rgba(0,0,0,.15);
    margin-top: 4px;
}

.login #wp-submit:hover,
.login .button-primary:hover {
    background: #c0412c;
    box-shadow: 0 2px 6px rgba(217,83,62,.35);
}

.login #wp-submit:active,
.login .button-primary:active {
    background: #a83526;
    box-shadow: none;
}

/* ── Below-form links ───────────────────────────────────────────────────────── */
#nav, #backtoblog {
    text-align: center;
    margin-top: 16px;
}

#nav a, #backtoblog a {
    color: #6b6b6b;
    font-size: 12px;
    text-decoration: none;
    transition: color .15s;
}

#nav a:hover, #backtoblog a:hover {
    color: #d9533e;
}

/* ── Error / notice messages ────────────────────────────────────────────────── */
#login_error,
.login .message,
.login .success {
    border-radius: 4px;
    border-left: 3px solid #d9533e;
    background: #fff5f4;
    padding: 10px 14px;
    font-size: 13px;
    color: #1e1e1e;
    margin-bottom: 20px;
    box-shadow: none;
}

.login .message,
.login .success {
    border-left-color: #232e46;
    background: #f0f3fa;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tbpal-login-cover { display: none; }
    .tbpal-login-side  { width: 100%; box-shadow: none; }
}
