@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0056b3;
    /* Blue 600 */
    --primary-hover: #00285F;
    /* Brand Dark Blue */
    --text-dark: #1F2937;
    /* Gray 900 */
    --text-medium: #4B5563;
    /* Gray 600 */
    --text-light: #9CA3AF;
    /* Gray 400 */
    --bg-light: #F9FAFB;
    /* Gray 50 */
    --border-color: #E5E7EB;
    /* Gray 200 */
    --error-color: #EF4444;
    /* Red 500 */
    --success-color: #10B981;
    /* Emerald 500 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 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: white;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

/* Split Layout */
.split-screen {
    display: flex;
    width: 100vw;
    height: 100vh;
}

.left-panel {
    width: 50%;
    background: linear-gradient(135deg, #00285F 0%, #004e9a 85%, #ffffff 130%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 60%);
    top: -25%;
    left: -25%;
    animation: pulse 8s infinite ease-in-out;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 500px;
}

.hero-logo {
    max-width: 250px;
    height: auto;
    margin: 0 auto 24px;
    display: block;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.brand-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 24px;
    display: inline-block;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-text {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.6;
}

.right-panel {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-light);
    padding: 40px;
    position: relative;
}

/* Login Form Styles */
.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.brand-logo {
    font-size: 40px;
    margin-bottom: 16px;
    display: inline-block;
}

.login-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.login-subtitle {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    /* Space for icon */
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-light);
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.form-input:focus+.input-icon {
    color: var(--primary-color);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-login:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-error {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FEE2E2;
}

/* Footer / Demo Users */
.demo-users-toggle {
    margin-top: 32px;
    text-align: center;
}

.btn-toggle-demo {
    background: none;
    border: none;
    color: var(--text-medium);
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btn-toggle-demo:hover {
    opacity: 1;
    color: var(--primary-color);
}

.demo-credentials {
    margin-top: 16px;
    padding: 16px;
    background-color: #F3F4F6;
    border-radius: 12px;
    text-align: left;
    font-size: 0.8rem;
    color: var(--text-medium);
    border: 1px solid var(--border-color);
    display: none;
    /* Initially hidden */
}

.demo-credentials.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.demo-credentials strong {
    color: var(--text-dark);
}

.demo-credentials ul {
    list-style: none;
    margin-top: 8px;
}

.demo-credentials li {
    padding: 4px 0;
    border-bottom: 1px dashed #E5E7EB;
}

.demo-credentials li:last-child {
    border-bottom: none;
}

/* Register Link Styles */
.register-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.register-link p {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.register-link a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.register-link a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.register-link a:active {
    color: #4338ca;
}


/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }

    100% {
        transform: scale(1);
        opacity: 0.1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .split-screen {
        flex-direction: column;
    }

    .left-panel {
        width: 100%;
        height: 35vh;
        padding: 20px;
    }

    .hero-logo {
        max-width: 150px;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .hero-text {
        font-size: 1rem;
    }

    .right-panel {
        width: 100%;
        height: 65vh;
        padding: 20px;
        border-radius: 24px 24px 0 0;
        margin-top: -24px;
        z-index: 10;
        justify-content: flex-start;
        padding-top: 40px;
    }

    .login-wrapper {
        padding: 24px;
        box-shadow: none;
        background: transparent;
    }
}