:root {
    --primary: #00BAF2;
    --primary-dark: #0088b3;
    --secondary: #0F4AA3;
    --dark: #002970;
    --surface: #ffffff;
    --background: #f8fafc;
    --text-title: #1e293b;
    --text-body: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-body);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px;
    display: flex;
    background: var(--surface);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    min-height: 700px;
}

/* Left Side: Branding/Visual */
.auth-visual {
    flex: 1;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-visual::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(0, 186, 242, 0.2);
    border-radius: 50%;
    filter: blur(60px);
}

.auth-visual::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: rgba(0, 186, 242, 0.15);
    border-radius: 50%;
    filter: blur(50px);
}

.visual-header .logo-white {
    max-width: 150px;
    filter: brightness(0) invert(1);
}

.visual-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
}

.visual-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.feature-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 500;
}

.feature-item i {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
}

/* Right Side: Form */
.auth-form-container {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2rem;
    color: var(--text-title);
    font-weight: 700;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-title);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i.prefix-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text-title);
    transition: all 0.2s ease;
    background: #fbfcfd;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 186, 242, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.password-toggle {
    position: absolute;
    right: 16px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    padding: 5px;
}

.password-toggle:hover {
    color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-body);
}

.remember-me input {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    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: 16px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 186, 242, 0.2);
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 186, 242, 0.25);
}

.btn-submit:active {
    transform: translateY(0);
}

.auth-footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.invalid-feedback {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 500;
}

.form-control.is-invalid {
    border-color: #ef4444;
}

/* Responsive Mobile Settings */
@media (max-width: 992px) {
    .auth-visual {
        display: none;
    }

    .auth-container {
        max-width: 500px;
        min-height: auto;
        border-radius: 24px;
        margin: 20px;
    }

    .auth-form-container {
        padding: 50px 40px;
    }
}

@media (max-width: 576px) {
    body {
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        display: flex;
        align-items: center;
        /* Center vertically on mobile */
        justify-content: center;
        padding: 15px;
    }

    .auth-container {
        margin: 0;
        border-radius: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        width: 100%;
    }

    .auth-form-container {
        padding: 40px 25px;
    }

    .form-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .form-header h2 {
        font-size: 1.75rem;
    }

    .form-header p {
        font-size: 0.9rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .forgot-link {
        order: -1;
        /* Move forgot password above remember me for better mobile flow */
        align-self: flex-end;
    }

    .btn-submit {
        padding: 14px;
        font-size: 1rem;
    }
}

/* Ambient Background for Mobile */
@media (max-width: 576px) {
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background:
            radial-gradient(circle at 10% 20%, rgba(0, 186, 242, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 90% 80%, rgba(15, 74, 163, 0.1) 0%, transparent 50%);
        z-index: -1;
    }
}

/* Hide mobile logo on desktop */
.mobile-logo-container {
    display: none;
    text-align: center;
    margin: 10px;
}

@media (max-width: 992px) {
    .mobile-logo-container {
        display: block;
    }
}

.footer-copyrights {
    text-align: center;
    margin-top: 20px;
}