:root {
    --primary: #1e3a8a; /* Deep Blue derived from the navy base */
    --primary-hover: #1e40af;
    --secondary: #bc00ff;
    --primary-light: #eff6ff;
    --dark: #0a142e;    /* The exact Navy Blue provided by user */
    --surface: #ffffff;
    --background: #f8fafc;
    --text-title: #0a142e;
    --text-body: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 14px;
    --font-main: 'Inter', sans-serif;
    --font-title: 'Outfit', sans-serif;
    --shadow-sm: 0 4px 12px rgba(10, 20, 46, 0.08);
    --shadow-md: 0 8px 24px rgba(10, 20, 46, 0.12);
    --shadow-lg: 0 16px 48px rgba(30, 58, 138, 0.2);
}

@font-face {
    font-family: 'Poppins';
    src: url('../Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--background);
    color: var(--text-body);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.auth-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    background: var(--surface);
}

/* Left Side: Visual */
.auth-side-panel {
    flex: 1.2;
    position: relative;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 70px;
    color: white;
    overflow: hidden;
}

.auth-side-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/digital_marketing_crm_visual_1772615572346.png');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 0;
    transition: transform 10s ease-in-out;
}

.auth-side-panel:hover::before {
    transform: scale(1.05);
}

.auth-side-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 20, 46, 0.96) 0%, rgba(30, 58, 138, 0.7) 100%);
    z-index: 1;
}

.side-content {
    position: relative;
    z-index: 2;
}

.side-logo {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 100px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-logo i {
    color: var(--primary);
    font-size: 2rem;
    filter: drop-shadow(0 0 12px rgba(30, 58, 138, 0.5));
}

.side-main-text h1 {
    font-family: var(--font-title);
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 28px;
    background: linear-gradient(to right, #ffffff, #94a3b8, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.side-main-text p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #e2e8f0;
    max-width: 500px;
    opacity: 0.9;
}

.side-footer {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.side-footer b {
    color: var(--primary);
}

/* Right Side: Form */
.auth-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    max-width: 650px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

.form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-header {
    margin-bottom: 48px;
}

.form-header h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 14px;
    letter-spacing: -1px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.form-group {
    margin-bottom: 28px;
}

.form-control:focus {
    border-color: unset !important;
}

:focus-visible {
    outline: none !important;
    border: none !important;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-title);
}

.input-group {
    position: relative;
}

.input-group i:not(.password-toggle i) {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: all 0.2s;
    opacity: 0.7;
}

.form-control {
    width: 100%;
    padding: 16px 18px 16px 52px;
    background-color: var(--primary-light);
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text-title);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.form-control:focus+i {
    color: var(--primary);
    opacity: 1;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    padding: 8px;
    z-index: 10;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--primary);
}

.form-utils {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-body);
    cursor: pointer;
}

.remember-me input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-title);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 24px rgba(10, 20, 46, 0.2);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(10, 20, 46, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.invalid-feedback {
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 8px;
    font-weight: 600;
}

.form-control.is-invalid {
    border-color: #e53e3e;
    background-color: #fff5f5;
}

/* Responsive */
@media (max-width: 1100px) {
    .auth-side-panel {
        padding: 50px;
    }

    .side-main-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 1024px) {
    .auth-side-panel {
        display: none;
    }

    .auth-wrapper {
        justify-content: center;
        background: var(--background);
    }

    .auth-form-panel {
        padding: 40px 24px;
        background: #fff;
        border-radius: 24px;
        box-shadow: var(--shadow-lg);
        max-width: 480px;
        height: auto;
        margin: auto;
    }
}

@media (max-width: 480px) {
    .form-header h2 {
        font-size: 2rem;
    }

    .auth-form-panel {
        padding: 30px 20px;
    }
}