/* Shared two-panel "login card" look: dark brand panel + light form/content panel.
   Used by login.php and by admin search pages that want the same visual language. */

.login-wrap {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: radial-gradient(circle at top left, #223049 0%, #172033 55%, #0f1626 100%);
}

.login-card {
    display: flex;
    width: 100%;
    max-width: 860px;
    min-height: 480px;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(8, 12, 24, 0.35);
}

/* ── Left: brand panel ─────────────────────────────────────────── */
.login-brand {
    position: relative;
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 28px;
    background: linear-gradient(160deg, #607D8B 0%, #172033 60%, #3c4b55 100%);
    color: #ffffff;
    overflow: hidden;
}

.login-brand::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 172, 8, 0.22), transparent 70%);
}

.login-brand-logo {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.login-brand-logo img {
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
}

.login-brand-name {
    font-size: 22px;
    font-weight: 850;
    letter-spacing: 0.2px;
}

.login-brand-tagline {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.login-brand-dots {
    display: flex;
    gap: 6px;
    margin-top: 28px;
}

.login-brand-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.login-brand-dots span:first-child {
    background: #e1ac08;
    width: 20px;
    border-radius: 4px;
}

/* ── Right: form / content panel ───────────────────────────────── */
.login-form-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 44px;
    background: #ffffff;
}

.login-form-title {
    font-size: 22px;
    font-weight: 850;
    color: #172033;
}

.login-form-sub {
    margin-top: 4px;
    margin-bottom: 22px;
    font-size: 13px;
    color: #64748b;
}

.login-msg {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.login-msg.danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.login-field {
    margin-bottom: 16px;
}

.login-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}

.login-field input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid #dce3ec;
    font-size: 14px;
    background: #f8fafc;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-field input:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.14);
}

.login-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    background: #2563eb;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

.login-btn:hover {
    background: #1d4ed8;
}

.login-btn:active {
    transform: translateY(1px);
}

@media (max-width: 720px) {
    .login-card {
        flex-direction: column;
        max-width: 420px;
        min-height: 0;
    }

    .login-brand {
        flex: none;
        padding: 32px 24px;
    }

    .login-form-panel {
        padding: 32px 28px;
    }
}
