/* ==========================================================================
   Jef 4 Login Website - split card layout (login / register / reset)
   Colors are variables: adjust them here to match the theme.
   ========================================================================== */

.jef4loginwebsite-page {
    --jef4lw-primary: #3b82f6;
    --jef4lw-primary-dark: #2563eb;
    --jef4lw-primary-light: #60a5fa;
    --jef4lw-aside-bg: #1346a2;
    --jef4lw-accent: #e74c3c;
    --jef4lw-accent-dark: #cf3d2e;
    --jef4lw-text: #111827;
    --jef4lw-muted: #6b7280;
    --jef4lw-field-bg: #f5f7fa;
    --jef4lw-radius: 18px;

    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    box-sizing: border-box;
}

.jef4loginwebsite-page *,
.jef4loginwebsite-page *::before,
.jef4loginwebsite-page *::after {
    box-sizing: border-box;
}

.jef4loginwebsite-page .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

/* Card ------------------------------------------------------------------- */

.jef4lw-card {
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    background: #fff;
    border-radius: var(--jef4lw-radius);
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
    overflow: hidden;
}

/* Left panel ------------------------------------------------------------- */

.jef4lw-aside {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 40px;
    min-height: 520px;
    color: #fff;
    background: var(--jef4lw-aside-bg);
}

.jef4lw-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.jef4lw-brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
}

.jef4lw-brand-icon svg {
    width: 20px;
    height: 20px;
}

.jef4lw-brand-name {
    font-weight: 800;
    font-size: 1.05rem;
}

.jef4lw-aside-body {
    position: relative;
    z-index: 1;
    margin: auto 0;
    padding: 32px 0;
}

.jef4lw-kicker {
    margin: 0 0 6px;
    font-size: 0.9rem;
    opacity: 0.95;
}

.jef4lw-aside-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.jef4lw-aside-line {
    display: block;
    width: 40px;
    height: 3px;
    margin: 14px 0 18px;
    border-radius: 2px;
    background: #fff;
}

.jef4lw-aside-text {
    margin: 0;
    max-width: 290px;
    font-size: 0.875rem;
    line-height: 1.65;
    opacity: 0.92;
}

/* Right panel ------------------------------------------------------------ */

.jef4lw-main {
    padding: 56px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--jef4lw-text);
}

.jef4lw-title {
    margin: 0 0 6px;
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--jef4lw-text);
}

.jef4lw-desc {
    margin: 0 0 26px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--jef4lw-muted);
}

.jef4loginwebsite-subtitle {
    margin: 0 0 14px;
    font-size: 1.1rem;
}

.jef4loginwebsite-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.jef4lw-field {
    position: relative;
}

.jef4loginwebsite-page .jef4lw-input {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-left: 3px solid var(--jef4lw-primary);
    border-radius: 2px 6px 6px 2px;
    background: var(--jef4lw-field-bg);
    color: var(--jef4lw-text);
    font-size: 0.95rem;
    box-shadow: none;
    outline: none;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.jef4loginwebsite-page .jef4lw-input::placeholder {
    color: #9aa3af;
}

.jef4loginwebsite-page .jef4lw-input:focus {
    background-color: #eef4ff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.jef4loginwebsite-page select.jef4lw-select {
    padding-right: 44px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
}

.jef4loginwebsite-page select.jef4lw-select:invalid {
    color: #9aa3af;
}

.jef4loginwebsite-page select.jef4lw-select option {
    color: var(--jef4lw-text);
}

.jef4loginwebsite-page .jef4lw-input--toggle {
    padding-right: 52px;
}

.jef4loginwebsite-page .jef4lw-input--code {
    height: 60px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 12px;
}

.jef4lw-eye {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 6px;
    border: 0;
    background: transparent;
    color: var(--jef4lw-muted);
    cursor: pointer;
}

.jef4lw-eye:hover {
    color: var(--jef4lw-text);
}

.jef4lw-eye svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Same specificity as ".jef4lw-eye svg" or higher, so the hidden icon stays hidden. */
.jef4lw-eye svg.jef4lw-eye-off,
.jef4lw-eye.is-visible svg.jef4lw-eye-on {
    display: none;
}

.jef4lw-eye.is-visible svg.jef4lw-eye-off {
    display: block;
}

.jef4lw-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
}

.jef4lw-row--center {
    justify-content: center;
    gap: 6px;
}

.jef4lw-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 400;
    color: #4b5563;
    cursor: pointer;
}

.jef4lw-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--jef4lw-primary);
}

.jef4lw-link,
.jef4lw-switch a,
.jef4lw-link-btn {
    color: var(--jef4lw-primary-dark);
    text-decoration: none;
}

.jef4lw-link:hover,
.jef4lw-switch a:hover,
.jef4lw-link-btn:hover {
    text-decoration: underline;
}

.jef4lw-switch a
{
    text-decoration: underline !important;
}

.jef4lw-switch a:hover
{
    text-decoration: none !important;
}


.jef4lw-link-btn {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}

.jef4lw-muted {
    color: var(--jef4lw-muted);
}

.jef4loginwebsite-page .jef4lw-btn {
    position: relative;
    width: 100%;
    height: 58px;
    margin-top: 4px;
    border: 0;
    border-radius: 6px;
    background: var(--jef4lw-accent);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 10px 0 0 -2px rgba(231, 76, 60, 0.22), 0 10px 24px rgba(231, 76, 60, 0.25);
    transition: background-color 0.15s, transform 0.15s;
}

.jef4loginwebsite-page .jef4lw-btn:hover {
    background: var(--jef4lw-accent-dark);
}

.jef4loginwebsite-page .jef4lw-btn:active {
    transform: translateY(1px);
}

.jef4loginwebsite-form.is-submitting .jef4lw-btn {
    opacity: 0.7;
    pointer-events: none;
}

.jef4lw-switch {
    margin: 26px 0 0;
    font-size: 0.875rem;
    text-align: center;
    color: var(--jef4lw-muted);
}

.jef4lw-dot {
    margin: 0 6px;
}

.jef4lw-sep {
    margin: 30px 0 20px;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

/* Alerts ----------------------------------------------------------------- */

.jef4loginwebsite-alert {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-left: 3px solid currentColor;
    border-radius: 2px 6px 6px 2px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.jef4loginwebsite-alert.is-error {
    background: #fdecea;
    color: #9b1c1c;
}

.jef4loginwebsite-alert.is-success {
    background: #e9f8ef;
    color: #11632b;
}

.jef4loginwebsite-alert.is-warning {
    background: #fff6db;
    color: #7f5a00;
}

.jef4loginwebsite-checkbox-list {
    display: grid;
    gap: 10px;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 760px) {
    .jef4loginwebsite-page {
        padding: 24px 16px;
    }

    .jef4lw-card {
        grid-template-columns: 1fr;
    }

    .jef4lw-aside {
        min-height: 0;
        padding: 24px;
    }

    .jef4lw-aside-body {
        padding: 22px 0 0;
    }

    .jef4lw-aside-title {
        font-size: 1.5rem;
    }

    .jef4lw-aside-text {
        display: none;
    }

    .jef4lw-main {
        padding: 32px 24px;
    }

    .jef4lw-title {
        font-size: 1.35rem;
    }
}
