/* ============================================
   FCAR CMS — Premium Login Page
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow: hidden;
}

/* Subtle grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(99,102,241,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Glow orbs */
body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
    border-radius: 50%;
}

/* ---- Login Card ---- */
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow:
        0 25px 60px rgba(0,0,0,.35),
        0 0 0 1px rgba(255,255,255,.05);
    overflow: hidden;
    width: 100%;
    max-width: 880px;
    display: flex;
}

/* ---- Left Panel ---- */
.left-panel {
    background: linear-gradient(160deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    color: white;
    padding: 3rem 2.5rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 45%;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}

.left-panel::after {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}

@media (min-width: 960px) {
    .left-panel { display: flex; }
    .right-panel { width: 55%; padding: 3rem; }
}

/* ---- Right Panel ---- */
.right-panel {
    padding: 2rem 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---- Brand ---- */
.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.05));
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

.brand-icon-light {
    width: 40px;
    height: 40px;
    background: #eef2ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Feature pills */
.feature-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 8px;
}

.feature-pill i { color: #a5b4fc; font-size: 0.75rem; }

/* ---- Form ---- */
.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.4rem;
    display: block;
}

.form-control {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #0f172a;
    padding: 0.6rem 0.875rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
    outline: none;
}

.input-group .form-control {
    border-radius: 0 10px 10px 0 !important;
    border-left: none !important;
}

.input-group-text {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-right: none;
    border-radius: 10px 0 0 10px !important;
    padding: 0 0.875rem;
    color: #94a3b8;
}

.input-group:focus-within .input-group-text {
    border-color: #6366f1;
}

.input-group:focus-within .form-control {
    border-color: #6366f1;
    box-shadow: none;
}

.input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
    border-radius: 10px;
}

/* Password toggle */
.btn-outline-secondary.bg-white {
    border: 1.5px solid #e2e8f0;
    border-left: none;
    border-radius: 0 10px 10px 0 !important;
    background: #fff !important;
    color: #94a3b8;
    padding: 0 0.875rem;
}

.btn-outline-secondary.bg-white:hover { background: #f8fafc !important; }

/* ---- Buttons ---- */
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 1.25rem;
    color: #fff;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(99,102,241,.3);
    width: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 6px 20px rgba(99,102,241,.4);
    transform: translateY(-1px);
    color: #fff;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.65rem 1.25rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    width: 100%;
    cursor: pointer;
}

.btn-google:hover {
    background: #f8fafc;
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(99,102,241,.12);
    color: #374151;
}

/* Divider */
.divider-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    margin: 1.25rem 0;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    border-top: 1px solid #e2e8f0;
}

/* Forgot password link */
.link-accent {
    color: #6366f1;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.link-accent:hover { color: #4f46e5; text-decoration: underline; }

/* Alert */
.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: none;
    border-radius: 10px;
    font-size: 0.82rem;
    padding: 0.7rem 0.875rem;
}

/* Form text */
.form-floating label { font-size: 0.875rem; color: #94a3b8; }