/* Snap Expenses — Branded Login v2.15.0 */

/* Full-bleed layout — overrides theme */
body.snap-login-page,
body.snap-login-page .site,
body.snap-login-page .site-content,
body.snap-login-page #content,
body.snap-login-page .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    background: #f8fafc !important;
}
body.snap-login-page header.site-header,
body.snap-login-page footer.site-footer,
body.snap-login-page #wpadminbar + * > header,
body.snap-login-page .entry-header,
body.snap-login-page .page-title {
    display: none !important;
}

/* Page shell */
.sel-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Left Panel ── */
.sel-left {
    background: var(--sel-primary, #0f62fe);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
}
.sel-left-inner {
    position: relative;
    z-index: 2;
    max-width: 400px;
    width: 100%;
}
.sel-watermark {
    position: absolute;
    right: -60px;
    bottom: -60px;
    font-size: 280px;
    opacity: .07;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

/* Brand */
.sel-brand {
    margin-bottom: 48px;
}
.sel-logo {
    height: 52px;
    margin-bottom: 18px;
    display: block;
}
.sel-logo-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}
.sel-brand-name {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -.02em;
    line-height: 1.1;
}
.sel-tagline {
    color: rgba(255,255,255,.75);
    font-size: 15px;
    margin: 0;
    font-weight: 500;
}

/* Feature list */
.sel-features {
    display: grid;
    gap: 22px;
}
.sel-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.sel-feature-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}
.sel-feature strong {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
}
.sel-feature p {
    color: rgba(255,255,255,.65);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* ── Right Panel ── */
.sel-right {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 40px 24px;
}
.sel-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 32px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
    padding: 44px 40px 36px;
    width: 100%;
    max-width: 420px;
}

/* Card header */
.sel-card-icon,
.sel-card-logo {
    font-size: 42px;
    display: block;
    margin: 0 auto 16px;
    text-align: center;
    height: 48px;
    width: auto;
}
.sel-card-title {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 6px;
    letter-spacing: -.01em;
}
.sel-card-sub {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    margin: 0 0 28px;
}

/* Error */
.sel-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1.5px solid #fca5a5;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Fields */
.sel-form {
    display: grid;
    gap: 0;
}
.sel-field {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}
.sel-field label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    letter-spacing: .01em;
}
.sel-input-wrap {
    position: relative;
}
.sel-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    pointer-events: none;
    line-height: 1;
}
.sel-field input[type="text"],
.sel-field input[type="password"],
.sel-field input[type="email"] {
    width: 100%;
    padding: 13px 48px 13px 40px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    background: #f9fafb;
    color: #111827;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s, background .15s;
    font-family: inherit;
    -webkit-appearance: none;
}
.sel-field input:focus {
    outline: none;
    border-color: var(--sel-primary, #0f62fe);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15,98,254,.12);
}
.sel-field input.sel-input--err {
    border-color: #ef4444;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.sel-field-error {
    font-size: 12px;
    color: #ef4444;
    font-weight: 600;
    min-height: 16px;
}

/* Show/hide password */
.sel-toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    cursor: pointer;
    color: #9ca3af;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: color .15s;
}
.sel-toggle-pw:hover { color: #374151; }

/* Remember + forgot */
.sel-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.sel-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    user-select: none;
}
.sel-remember input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0; height: 0;
}
.sel-check-box {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color .15s, background .15s;
}
.sel-remember input:checked + .sel-check-box {
    background: var(--sel-primary, #0f62fe);
    border-color: var(--sel-primary, #0f62fe);
}
.sel-remember input:checked + .sel-check-box::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg) translate(-1px, -1px);
}
.sel-forgot {
    font-size: 13px;
    font-weight: 600;
    color: var(--sel-primary, #0f62fe);
    text-decoration: none;
    transition: opacity .15s;
}
.sel-forgot:hover { opacity: .75; }

/* Submit button */
.sel-submit {
    width: 100%;
    padding: 15px 24px;
    background: var(--sel-primary, #0f62fe);
    color: #fff;
    border: 0;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity .15s, transform .1s;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.sel-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background .15s;
}
.sel-submit:hover::before { background: rgba(255,255,255,.08); }
.sel-submit:active { transform: scale(.98); }
.sel-submit:disabled { opacity: .55; cursor: not-allowed; }
.sel-submit-spinner svg {
    animation: sel-spin .7s linear infinite;
}
.sel-submit-arrow {
    font-size: 18px;
    font-weight: 800;
    transition: transform .2s;
}
.sel-submit:hover .sel-submit-arrow { transform: translateX(4px); }

@keyframes sel-spin { to { transform: rotate(360deg); } }

/* Footer */
.sel-footer {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin: 22px 0 0;
}
.sel-footer a {
    color: var(--sel-primary, #0f62fe);
    text-decoration: none;
    font-weight: 600;
}

/* Utility */
.sel-hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .sel-page { grid-template-columns: 1fr; }
    .sel-left  { display: none; }
    .sel-right { min-height: 100vh; background: #fff; padding: 32px 20px; }
    .sel-card  { box-shadow: none; padding: 32px 24px; }
}
@media (max-width: 480px) {
    .sel-card { border-radius: 0; }
    .sel-right { padding: 0; }
}
