:root {
    --primary-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #0d47a1 100%);
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
    --accent-color: #0066ff;
    --error-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #ecf0f1;
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
    border-radius: 50%;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #0d47a1 0%, #2a5298 100%);
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #1e3c72 0%, #0d47a1 100%);
    top: 50%;
    left: 10%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(20px); }
}

.login-wrapper {
    display: flex;
    width: 90%;
    max-width: 1200px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    z-index: 10;
    min-height: 600px;
}

.login-branding {
    flex: 1;
    background: var(--primary-gradient);
    color: white;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-branding::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.branding-content {
    position: relative;
    z-index: 2;
}

.logo-wrapper {
    margin-bottom: 2rem;
}

.logo-brand {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.branding-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    color: #fff;
}

.branding-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    color: #fff;
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benefit-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.login-form-wrapper {
    flex: 1;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 2.5rem;
}

.login-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-header p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.login-container .form-group {
    margin-bottom: 1.75rem;
}

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

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--secondary-color);
    font-size: 1.1rem;
    z-index: 1;
}

.login-container .form-control {
    width: 100%;
    padding: 14px 14px 14px 42px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    background-color: #f8f9fa;
    color: var(--text-dark);
    font-weight: 500;
}

.login-container .form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.alert-error {
    background-color: #fdedec;
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.login-button {
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 1.25rem;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(30, 60, 114, 0.4);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

.login-build {
    margin-top: 0.4rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .login-branding {
        padding: 3rem 2rem;
        min-height: 250px;
    }

    .branding-title {
        font-size: 1.75rem;
    }

    .login-form-wrapper {
        padding: 2.5rem 2rem;
    }

    .login-container .form-control {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }

    .login-wrapper {
        width: 100%;
        border-radius: 15px;
    }

    .login-form-wrapper {
        padding: 2rem 1.5rem;
    }
}
