/* Login screen — branded, on-theme sign-in experience.
   Mirrors the app's brand gradient (#667eea -> #764ba2) and card language
   used across the Home page and service cards. */

#login-wrapper.login-bg {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(1200px 600px at 100% 0%, rgba(118, 75, 162, 0.10), transparent 60%),
        radial-gradient(900px 500px at 0% 100%, rgba(102, 126, 234, 0.10), transparent 55%),
        #f4f6fb;
    overflow: auto;
}

/* Card shell: two panels (brand hero + sign-in) */
#loginpanel.login-card {
    display: flex;
    width: 100%;
    max-width: 940px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(31, 41, 55, 0.18), 0 2px 6px rgba(31, 41, 55, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

/* Left: brand hero on the signature gradient */
.login-hero {
    flex: 1 1 50%;
    padding: 40px;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 300px at 90% 10%, rgba(255, 255, 255, 0.12), transparent 60%);
    pointer-events: none;
}

.login-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.login-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-brand {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin: 0;
    line-height: 1;
}

.login-tag {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
}

.login-org {
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: 18px;
    margin: 0;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #9aa3b2;
    border-top: 1px solid #edf0f5;
}

.login-org a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.login-subtitle {
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 26px;
    max-width: 100%;
}

/* Feature list = current offering */
.login-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.login-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.login-feature-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-feature-icon img {
    width: 34px;
    height: 34px;
    display: block;
}

.login-feature-text b {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
}

.login-feature-text span {
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}

/* Right: sign-in panel */
.login-signin {
    flex: 1 1 50%;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.login-signin h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px;
}

.login-signin p.login-signin-lead {
    font-size: 0.95rem;
    color: #5a6478;
    line-height: 1.55;
    margin: 0 0 26px;
}

.login-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.02rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 12px 26px rgba(102, 126, 234, 0.45);
    color: #ffffff;
}

.login-btn:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

.login-btn svg {
    width: 18px;
    height: 18px;
}

.login-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.82rem;
    color: #6b7280;
}

.login-secure svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.login-foot {
    margin: 26px 0 0;
    font-size: 0.82rem;
    color: #8892a6;
    white-space: nowrap;
}

.login-foot a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-foot-sep {
    color: #c3cbd8;
    margin: 0 4px;
}

.login-foot a:hover {
    text-decoration: underline;
}

/* Responsive: stack the panels on narrow screens */
@media (max-width: 760px) {
    #loginpanel.login-card {
        flex-direction: column;
        max-width: 480px;
    }

    .login-hero {
        padding: 34px 28px;
    }

    .login-signin {
        padding: 32px 28px 36px;
    }

    .login-org {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 22px;
    }

    .login-foot {
        white-space: normal;
    }
}
