/* ---------- Signed-in bar (shown at top when an already-logged-in user visits the login URL) ---------- */
.seodesk-signed-in-bar {
    background: linear-gradient(90deg, #2c323f, #3a4150);
    color: #fff;
    padding: 0;
    border-bottom: 3px solid #7366ff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    position: relative;
    z-index: 10;
}
.seodesk-signed-in-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.seodesk-signed-in-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.seodesk-signed-in-left img {
    width: 32px; height: 32px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
}
.seodesk-signed-in-left span { color: rgba(255,255,255,0.75); font-size: 12px; display: block; }
.seodesk-signed-in-left strong { color: #fff; font-weight: 600; font-size: 13px; display: block; }
.seodesk-signed-in-right {
    display: flex; align-items: center; gap: 10px;
}
.seodesk-signed-in-right a { text-decoration: none; }
.seodesk-signed-in-primary {
    background: #7366ff;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.15s;
}
.seodesk-signed-in-primary:hover { background: #5c50eb; }
.seodesk-signed-in-logout {
    color: rgba(255,255,255,0.8) !important;
    padding: 8px 14px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    font-weight: 500;
    transition: all 0.15s;
}
.seodesk-signed-in-logout:hover { background: rgba(255,255,255,0.15); color: #fff !important; }

/* Compact on mobile */
@media (max-width: 600px) {
    .seodesk-signed-in-inner { padding: 10px 16px; gap: 10px; }
    .seodesk-signed-in-right { flex: 1; justify-content: flex-end; }
    .seodesk-signed-in-primary { padding: 6px 12px; font-size: 12px; }
}

/* When the signed-in bar is present, make sure the login wrapper still fills viewport */
.seodesk-signed-in-bar + .seodesk-login-wrapper { min-height: calc(100vh - 58px); }

/* SEODesk Pro — Login Page
   Split-screen layout matching superwebdevelopment.com/workspace reference */

/* Standalone mode (router-rendered page) — no theme interference */
body.seodesk-standalone { margin: 0; padding: 0; background: #fff; }
body.seodesk-standalone.seodesk-page-login { overflow-x: hidden; }

.seodesk-login-wrapper * { box-sizing: border-box; }
body:has(.seodesk-login-wrapper) { background: #f8f9fd; }

.seodesk-login-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2c323f;
    background: #fff;
    position: relative;
}
body.seodesk-standalone .seodesk-login-wrapper { margin: 0; }
/* When rendered via shortcode inside a theme page */
body:not(.seodesk-standalone) .seodesk-login-wrapper { margin: -30px 0; }

@media (max-width: 900px) {
    .seodesk-login-wrapper { grid-template-columns: 1fr; }
}

/* ---------- LEFT: HERO ---------- */
.seodesk-login-hero {
    background: linear-gradient(135deg, #7366ff 0%, #5c50eb 50%, #4b3ec7 100%);
    color: #fff;
    padding: 50px 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
@media (max-width: 900px) { .seodesk-login-hero { display: none; } }

.seodesk-hero-inner {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    height: 100%; gap: 40px;
}

.seodesk-hero-brand {
    display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px;
}
.seodesk-hero-logo { width: 40px; height: 40px; }
.seodesk-hero-logo svg { width: 100%; height: 100%; }

.seodesk-hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.seodesk-hero-content h1 {
    font-size: 38px; font-weight: 700; line-height: 1.2; margin: 0 0 16px; color: #fff;
}
.seodesk-hero-content p {
    font-size: 16px; opacity: .9; line-height: 1.6; margin: 0 0 28px; max-width: 480px;
}

.seodesk-hero-features { list-style: none; padding: 0; margin: 0; }
.seodesk-hero-features li {
    display: flex; align-items: center; gap: 12px; padding: 10px 0;
    font-size: 15px; opacity: .95;
}
.seodesk-hero-check {
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.seodesk-hero-footer { font-size: 13px; opacity: .7; }

/* Decorative pattern */
.seodesk-hero-pattern {
    position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.15;
    background-image:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,.5) 0, transparent 60px),
        radial-gradient(circle at 85% 30%, rgba(255,255,255,.4) 0, transparent 80px),
        radial-gradient(circle at 50% 80%, rgba(255,255,255,.3) 0, transparent 100px);
}
.seodesk-hero-pattern::before {
    content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.2); top: -100px; right: -100px;
}
.seodesk-hero-pattern::after {
    content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.15); bottom: -80px; left: -80px;
}

/* ---------- RIGHT: FORM ---------- */
.seodesk-login-form-col {
    display: flex; align-items: center; justify-content: center; padding: 40px;
    background: #fff;
}
.seodesk-login-form-wrap { width: 100%; max-width: 420px; }

.seodesk-login-mobile-brand {
    display: none; align-items: center; gap: 12px; font-weight: 700;
    font-size: 18px; color: #2c323f; margin-bottom: 30px;
}
.seodesk-login-mobile-brand .seodesk-hero-logo { width: 40px; height: 40px; }
@media (max-width: 900px) { .seodesk-login-mobile-brand { display: flex; } }

.seodesk-login-form-wrap h2 {
    font-size: 28px; font-weight: 700; margin: 0 0 8px; color: #2c323f;
}
.seodesk-login-sub { color: #8a92a6; margin: 0 0 32px; font-size: 15px; }

.seodesk-login-form {
    display: flex; flex-direction: column; gap: 18px;
}
.seodesk-login-field {
    display: flex; flex-direction: column; gap: 8px;
}
.seodesk-login-field > span {
    font-size: 13px; font-weight: 500; color: #2c323f;
}
.seodesk-login-field input {
    padding: 13px 16px; border: 1px solid #e6edf5; border-radius: 10px;
    font-size: 15px; background: #fafbfe; transition: all .15s; font-family: inherit;
    color: #2c323f; width: 100%;
}
.seodesk-login-field input:focus {
    outline: none; border-color: #7366ff; background: #fff;
    box-shadow: 0 0 0 4px rgba(115,102,255,.12);
}

.seodesk-password-input { position: relative; }
.seodesk-password-input input { padding-right: 50px; }
.seodesk-toggle-pw {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: transparent; border: none; cursor: pointer; color: #8a92a6;
    padding: 6px 10px; font-size: 16px; border-radius: 6px;
}
.seodesk-toggle-pw:hover { background: #f0f3f9; }

.seodesk-login-row {
    display: flex; justify-content: space-between; align-items: center;
    margin: -4px 0 6px; font-size: 13px;
}
.seodesk-check-inline {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    color: #2c323f;
}
.seodesk-check-inline input[type="checkbox"] { margin: 0; }
.seodesk-forgot-link {
    color: #7366ff; text-decoration: none; font-weight: 500;
}
.seodesk-forgot-link:hover { text-decoration: underline; }

.seodesk-login-btn {
    padding: 14px 24px; background: #7366ff; color: #fff; border: none;
    border-radius: 10px; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: all .15s;
    box-shadow: 0 4px 14px rgba(115,102,255,.3);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.seodesk-login-btn:hover { background: #5c50eb; box-shadow: 0 6px 20px rgba(115,102,255,.4); }
.seodesk-login-btn:active { transform: translateY(1px); }
.seodesk-login-btn.is-loading { pointer-events: none; opacity: .75; }
.seodesk-login-btn.is-loading::after {
    content: ''; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
    animation: sdSpin .7s linear infinite;
}
@keyframes sdSpin { to { transform: rotate(360deg); } }

.seodesk-login-msg {
    font-size: 13px; padding: 10px 14px; border-radius: 8px; display: none; line-height: 1.4;
}
.seodesk-login-msg.error   { display: block; background: #ffe0de; color: #c8261c; }
.seodesk-login-msg.success { display: block; background: #dff7dc; color: #3b8632; }

.seodesk-back-link {
    text-align: center; color: #7366ff; text-decoration: none; font-size: 13px; font-weight: 500;
}
.seodesk-back-link:hover { text-decoration: underline; }

/* Access denied state */
.seodesk-fe-denied {
    max-width: 500px; margin: 80px auto; padding: 40px; text-align: center;
    background: #fff; border-radius: 10px; box-shadow: 0 2px 20px rgba(0,0,0,.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.seodesk-fe-denied h2 { color: #2c323f; margin: 0 0 12px; }
.seodesk-fe-denied p { color: #8a92a6; margin: 0 0 20px; }
.seodesk-fe-denied .seodesk-btn {
    display: inline-block; padding: 12px 24px; background: #7366ff; color: #fff;
    border-radius: 8px; text-decoration: none; font-weight: 500;
}
