/*
 * Corporate Login Page Styles
 * Split-panel ERP login: branded panel + sign-in form.
 * Palette is shared with the app shell (see style.css :root variables).
 */

:root {
    --corp-navy: #102a3d;
    --corp-navy-dark: #0a1b28;
    --corp-teal: #0f6466;
    --corp-teal-dark: #0b4d4f;
    --corp-teal-light: #e3f2f1;
    --corp-text: #1f2937;
    --corp-text-muted: #6b7280;
    --corp-bg: #f2f5f7;
    --corp-border: #dfe4e8;
    --corp-focus-ring: rgba(15, 100, 102, 0.18);
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--corp-bg);
    background-image: radial-gradient(#e2e8ec 1px, transparent 1px);
    background-size: 24px 24px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 1.5rem;
}

.login-shell {
    width: 100%;
    max-width: 960px;
}

/* --- Split Panel Card --- */
.login-panel {
    display: flex;
    width: 100%;
    min-height: 560px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px -12px rgba(15, 42, 61, 0.25), 0 4px 12px -2px rgba(15, 42, 61, 0.1);
}

/* --- Brand Panel (left) --- */
.login-brand-panel {
    flex: 0 0 42%;
    background: linear-gradient(155deg, var(--corp-navy) 0%, var(--corp-navy-dark) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Subtle geometric accent for a technical, enterprise feel */
.login-brand-panel::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 100, 102, 0.35) 0%, transparent 70%);
}

.login-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 55%;
    height: 55%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 100, 102, 0.2) 0%, transparent 70%);
}

.login-brand-panel-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 320px;
}

.brand-logo-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.brand-logo {
    max-height: 40px;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.brand-company-name {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
    color: #ffffff;
}

.brand-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

.brand-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.brand-highlights li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.85rem;
}

.brand-highlights i {
    color: #4fd1cd;
    font-size: 1rem;
}

/* --- Form Panel (right) --- */
.login-form-panel {
    flex: 1 1 58%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.5rem;
}

.form-signin {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.form-signin-header {
    margin-bottom: 2rem;
}

.form-signin-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--corp-text);
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
}

.form-signin-header p {
    font-size: 0.9rem;
    color: var(--corp-text-muted);
    margin: 0;
}

/* Animation for switching content */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Form Elements --- */
.form-floating > .form-control {
    border-radius: 8px;
    border: 1px solid var(--corp-border);
    background-color: #ffffff;
    font-size: 0.95rem;
    color: var(--corp-text);
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating > .form-control:focus {
    border-color: var(--corp-teal);
    box-shadow: 0 0 0 4px var(--corp-focus-ring);
    outline: none;
}

.form-floating > label {
    color: var(--corp-text-muted);
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--corp-teal);
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background-color: var(--corp-teal-dark);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:active {
    transform: translateY(0);
    opacity: 0.9;
}

/* --- Alerts --- */
.alert {
    border-radius: 8px;
    font-size: 0.875rem;
    border: none;
    padding: 0.75rem 1rem;
}

.alert-danger {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: var(--corp-teal-light);
    color: var(--corp-teal-dark);
    border: 1px solid #bcdedd;
}

/* --- Footer --- */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.footer-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 860px) {
    .login-panel {
        flex-direction: column;
        min-height: 0;
    }

    .login-brand-panel {
        flex: 0 0 auto;
        padding: 2rem 1.5rem;
    }

    .login-brand-panel-inner {
        max-width: 100%;
    }

    .brand-highlights {
        display: none;
    }

    .brand-tagline {
        margin-bottom: 0;
    }

    .login-form-panel {
        padding: 2rem 1.75rem;
    }
}
