/* CloudBikV4 login redesign: split panel (CSS only, form logic unchanged) */
body.cbk-login {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
    margin: 0;
    background: #f3f4f8 !important;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif !important;
    color: #3b4257;
}

/* Hide legacy chrome */
body.cbk-login > nav.navbar,
body.cbk-login > footer.footer,
body.cbk-login .content-overlay,
body.cbk-login .header-navbar-shadow {
    display: none !important;
}

/* Left hero */
.cbk-login-hero {
    background: linear-gradient(160deg, #0b1b4d 0%, #0a1740 60%, #081233 100%);
    color: #fff;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

.cbk-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
}

.cbk-login-brand .cbk-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #2a4dee;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.cbk-login-hero h1 {
    color: #fff !important;
    font-family: "Manrope", "Segoe UI", Arial, sans-serif !important;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 520px;
    margin: 0 0 1rem;
}

.cbk-login-hero p {
    color: #a9b7e8;
    max-width: 460px;
    margin: 0;
    font-size: 0.98rem;
}

.cbk-login-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cbk-login-tags span {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #dbe3ff;
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Right form panel */
body.cbk-login .app-content {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

body.cbk-login .content-wrapper {
    width: 100%;
    padding: 1.5rem !important;
}

body.cbk-login .auth-wrapper {
    min-height: 0;
    display: block;
}

body.cbk-login .auth-inner {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}

body.cbk-login .modal-dialog {
    max-width: 100%;
    margin: 0;
}

body.cbk-login .modal-content {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.cbk-login .modal-header {
    padding: 0 0 0.75rem;
}

body.cbk-login .modal-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f1629;
    letter-spacing: -0.02em;
}

body.cbk-login .modal-body {
    padding: 0;
}

body.cbk-login .form-label {
    font-weight: 600;
    color: #0f1629;
    font-size: 0.88rem;
}

body.cbk-login .form-control {
    background: #fff;
    border: 1px solid #e0e3ec !important;
    border-radius: 10px !important;
    min-height: 44px;
    padding: 0.6rem 0.9rem;
}

body.cbk-login .form-control:focus {
    border-color: #9db2ff !important;
    box-shadow: 0 0 0 3px rgba(42, 77, 238, 0.12) !important;
}

body.cbk-login .btn {
    border-radius: 10px;
    font-weight: 700;
    min-height: 44px;
    box-shadow: none !important;
}

body.cbk-login .btn-dark,
body.cbk-login .btn-primary {
    background: #2a4dee !important;
    border-color: #2a4dee !important;
    color: #fff !important;
}

body.cbk-login .btn-dark:hover,
body.cbk-login .btn-primary:hover {
    background: #1f3fd0 !important;
    border-color: #1f3fd0 !important;
}

body.cbk-login .link-prop,
body.cbk-login a {
    color: #2a4dee;
    font-weight: 600;
}

body.cbk-login .separator {
    color: #7b8298;
}

body.cbk-login .valid { color: #12a06b; }
body.cbk-login .invalid { color: #e5484d; }

/* --- Polish fixes --- */
/* Brand text readable on dark hero */
.cbk-login-hero .cbk-login-brand,
.cbk-login-hero .cbk-login-brand:hover {
    color: #fff !important;
}

/* Remove legacy decorative shapes / bubbles behind the form */
body.cbk-login .auth-wrapper::before,
body.cbk-login .auth-wrapper::after,
body.cbk-login .auth-inner::before,
body.cbk-login .auth-inner::after,
body.cbk-login .modal-dialog::before,
body.cbk-login .modal-dialog::after,
body.cbk-login .modal-content::before,
body.cbk-login .modal-content::after,
body.cbk-login .modal-body::before,
body.cbk-login .modal-body::after,
body.cbk-login .content-wrapper::before,
body.cbk-login .content-wrapper::after,
body.cbk-login .content-body::before,
body.cbk-login .content-body::after,
body.cbk-login .btn::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
    border: 0 !important;
}

body.cbk-login .content-header {
    margin: 0;
    padding: 0;
}

body.cbk-login .modal-header {
    border-bottom: 0 !important;
    justify-content: flex-start;
}

/* Social buttons: consistent, aligned */
body.cbk-login .login-with-google-btn,
body.cbk-login .login-with-microsoft-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 1rem 0.6rem 2.75rem !important;
    background-color: #fff !important;
    border: 1px solid #e0e3ec !important;
    border-radius: 10px !important;
    color: #3b4257 !important;
    font-weight: 600;
    text-transform: none;
    background-position: 14px center !important;
    box-shadow: none !important;
}

body.cbk-login .login-with-google-btn:hover,
body.cbk-login .login-with-microsoft-btn:hover {
    background-color: #f5f7ff !important;
    border-color: #c9d3ff !important;
    color: #2a4dee !important;
}

body.cbk-login .btn-party,
body.cbk-login .btn-party-extra {
    margin-bottom: 0.75rem;
}

@media (max-width: 991.98px) {
    body.cbk-login {
        grid-template-columns: 1fr;
    }

    .cbk-login-hero {
        display: none;
    }
}

/* Hero logo (dark logo made white for dark panel) */
.cbk-login-hero .cbk-login-logo {
    height: 40px;
    max-width: 100%;
    filter: brightness(0) invert(1);
}

/* Keep login form fields light regardless of theme/autofill */
body.cbk-login input.form-control,
body.cbk-login .form-control,
body.cbk-login input[type="text"],
body.cbk-login input[type="email"],
body.cbk-login input[type="password"] {
    background-color: #fff !important;
    color: #0f1629 !important;
}

body.cbk-login input:-webkit-autofill,
body.cbk-login input:-webkit-autofill:hover,
body.cbk-login input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #0f1629 !important;
}

body.cbk-login #login-form .btn,
body.cbk-login #login-form button[type="submit"],
body.cbk-login #login-form input[type="submit"] {
    background-color: #2a4dee !important;
    border-color: #2a4dee !important;
    color: #fff !important;
}
