/* Modern Enterprise Minimalist Slate CRM Login Styles */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.crm-login-body {
    background-color: #090d16;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.22), transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.16), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.7), transparent 70%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #0f172a;
}

/* Master Centered Elevated Split Container */
.crm-auth-container {
    width: 100%;
    max-width: 1040px;
    min-height: 620px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Left Hero Column: Deep Slate Enterprise Showcase */
.crm-hero-pane {
    flex: 1.15;
    background: linear-gradient(155deg, #0b1120 0%, #0f172a 40%, #1e293b 100%);
    color: #ffffff;
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

/* Ambient Geometric Mesh Grid */
.crm-hero-pane::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.crm-hero-top {
    position: relative;
    z-index: 2;
}

.crm-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 32px;
}

.crm-badge-pill .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

.crm-hero-heading {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0 0 16px;
}

.crm-hero-subtext {
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0 0 32px;
    max-width: 440px;
}

/* Value Props Feature List */
.crm-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.crm-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
}

.crm-feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.crm-hero-footer {
    position: relative;
    z-index: 2;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

.crm-hero-footer i {
    color: #10b981;
    font-size: 14px;
}

/* Right Form Column: Pure White Modern Enterprise Form */
.crm-form-pane {
    flex: 1;
    background: #ffffff;
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.crm-brand-header {
    margin-bottom: 28px;
}

.crm-logo-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 24px;
}

.crm-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}

.crm-form-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Alerts & Notifications Override */
.crm-alert-box {
    margin-bottom: 22px;
}

.crm-alert-box .alert,
.alert.alert-danger {
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
}

.crm-alert-box .alert .close,
.alert.alert-danger .close {
    color: #991b1b !important;
    opacity: 0.6 !important;
    margin-left: auto !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.alert.alert-success {
    background-color: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
}

/* Modern Form Controls */
.crm-form-group {
    margin-bottom: 20px;
    position: relative;
}

.crm-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}

.crm-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.crm-input-icon {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.15s ease;
    z-index: 2;
}

.crm-input {
    width: 100%;
    height: 46px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 16px 10px 42px;
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    transition: all 0.15s ease-in-out;
    box-sizing: border-box;
}

.crm-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.crm-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.crm-input:focus + .crm-input-icon,
.crm-input-wrapper:focus-within .crm-input-icon {
    color: #2563eb;
}

/* Password Toggle Icon Button */
.crm-pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    font-size: 14px;
    line-height: 1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
    z-index: 3;
}

.crm-pw-toggle:hover {
    color: #334155;
}

.crm-pw-toggle:focus {
    outline: none;
    color: #2563eb;
}

/* Remember Me & Forgot Password Row */
.crm-aux-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 12px;
}

.crm-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: #475569;
    font-weight: 500;
    margin: 0;
}

.crm-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0f172a;
    cursor: pointer;
    border-radius: 4px;
    margin: 0;
}

.crm-forgot-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.crm-forgot-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Primary Enterprise Submit Button */
.crm-btn-primary {
    width: 100%;
    height: 48px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.12), 0 2px 4px -2px rgba(15, 23, 42, 0.08);
    transition: all 0.15s ease-in-out;
}

.crm-btn-primary:hover {
    background: #1e293b;
    border-color: #1e293b;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.crm-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.1);
}

.crm-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form Footer Copyright Notice */
.crm-form-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
}

/* Responsive Breakpoints */
@media (max-width: 920px) {
    .crm-auth-container {
        max-width: 460px;
        min-height: auto;
        border-radius: 16px;
    }
    
    .crm-hero-pane {
        display: none !important;
    }
    
    .crm-form-pane {
        padding: 40px 28px;
    }
}

@media (max-width: 480px) {
    body.crm-login-body {
        padding: 16px;
    }
    
    .crm-form-pane {
        padding: 32px 20px;
    }
    
    .crm-form-title {
        font-size: 20px;
    }
}
