/**
 * Sentry CRM — login screen.
 * Split layout: brand form on the right, random video on the left.
 */

:root {
    --scc-primary: #2563EB;
    --scc-primary-hover: #1d4ed8;
    --scc-bg: #F4F6FC;
    --scc-active: #E9F0FE;
    --scc-text: #0E2541;
    --scc-text-2: #5A6B80;
    --scc-border: #E4E9F2;
}

html { height: 100%; }

body.login {
    height: 100vh;
    overflow: hidden;              /* no scroll — always full height */
    margin: 0;
    background: #fff;
    direction: rtl;
    font-family: 'Noto Sans Hebrew', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== Right side: form column ===== */
body.login #login {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 65%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    font-size: 0;
}

/* Hide WordPress defaults we replace */
body.login #login h1 a { display: none; }
body.login #nav,
body.login #backtoblog,
body.login .privacy-policy-page-link { display: none; }
body.login .language-switcher { display: none; }

.login h1 {
    font-family: 'Satoshi';
    text-align: center;
    line-height: 1.2;
    font-weight: 800;
    font-size: 37px;
}

/* Remember-me checkbox — wp-login renders the input and label as siblings,
   so the flex row goes on the wrapper, not the label. */
body.login .forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0px 0 20px;
}
body.login .forgetmenot label {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--scc-text-2);
    cursor: pointer;
    line-height: 1.4;
}
body.login .forgetmenot input {
    margin: 0;
    accent-color: var(--scc-primary);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Logo, pinned top-right of the viewport */
.scc-login-logo {
    position: fixed;
    top: 34px;
    right: 48px;
    z-index: 5;
    color: var(--scc-text);
}
.scc-login-logo svg {
    height: 26px;
    width: auto;
    display: block;
}

/* Brand heading */
.scc-login-brand {
    width: min(420px, 78%);
    text-align: center;
    margin: 0 0 20px;
}
.scc-login-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--scc-text);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    padding: 0;
}
.scc-login-sub {
    font-size: 0.95rem;
    color: var(--scc-text-2);
    margin: 0;
    line-height: 1.5;
}

/* Form shell */
body.login #loginform {
    width: min(420px, 78%);
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    overflow: visible;
}
body.login #loginform > p { margin-bottom: 15px; }
body.login #loginform label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--scc-text);
    margin-bottom: 5px;
    text-align: right;
    line-height: 1.4;
}
body.login #loginform input[type="text"],
body.login #loginform input[type="password"],
body.login #loginform input[type="email"] {
    width: 100%;
    background: var(--scc-bg);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.95rem;
    color: var(--scc-text);
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
body.login #loginform input[type="text"]:focus,
body.login #loginform input[type="password"]:focus,
body.login #loginform input[type="email"]:focus {
    background: #fff;
    border-color: var(--scc-primary);
    box-shadow: 0 0 0 3px var(--scc-active);
    outline: none;
}

/* Submit — brand blue */
body.login #wp-submit {
    width: 100%;
    background: var(--scc-primary);
    border: none;
    border-radius: 7px;
    margin: 15px 0 0;
    padding: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    height: auto;
    line-height: 1.3;
    text-shadow: none;
    box-shadow: 0 1px 2px rgba(20, 24, 35, .10);
    transition: background .15s ease, box-shadow .15s ease;
}
body.login #wp-submit:hover {
    background: var(--scc-primary-hover);
    box-shadow: 0 4px 12px -2px rgba(37,99,235,.35);
}
body.login p.submit { margin: 0; }

/* "או" divider + passkey button (overrides the plugin's inline styles) */
body.login .scc-pk-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 14px;
    color: var(--scc-text-2);
    font-size: 0.85rem;
}
body.login .scc-pk-divider::before,
body.login .scc-pk-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--scc-border);
}
body.login #scc-passkey-login {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--scc-border);
    border-radius: 10px;
    padding: 5px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--scc-text);
    cursor: pointer;
    height: auto;
    box-shadow: none;
    transition: border-color .15s ease, background .15s ease;
}
body.login #scc-passkey-login:hover {
    border-color: var(--scc-primary);
    background: var(--scc-active);
}
body.login #scc-passkey-login svg {
    width: 18px;
    height: 18px;
    color: var(--scc-text);
}
body.login #scc-passkey-login.is-busy { opacity: .6; cursor: progress; }
body.login .scc-passkey-status { text-align: center; margin: 8px 0 0; }

/* Error / notice messages */
body.login #login_error,
body.login .message,
body.login .notice {
    width: min(420px, 78%);
    box-sizing: border-box;
    border-radius: 10px;
    border-inline-start-width: 4px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(20,24,35,.08);
    margin-bottom: 18px;
}

/* ===== Left side: random video ===== */
.scc-login-video-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 35%;
    height: 100vh;
    padding: 20px;                 /* 20px margin all around */
    box-sizing: border-box;
    z-index: 1;
}
.scc-login-video {
    width: 100%;
    height: calc(100vh - 40px);    /* full height minus 40px */
    object-fit: cover;
    border-radius: 20px;
    display: block;
    background: var(--scc-active);
}

/* ===== Responsive: stack, drop the heavy video ===== */
@media (max-width: 900px) {
    body.login {
        height: auto;
        overflow: auto;
    }
    body.login #login {
        position: static;
        width: 100%;
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    .scc-login-video-panel { display: none; }
    .scc-login-logo { top: 20px; right: 20px; }
}
