*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-wrapper {
    display: flex;
    min-height: calc(100vh - 50px);
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #075E54 0%, #128C7E 50%, #25D366 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #ffffff;
}

.login-footer {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.85rem;
    border-top: 1px solid #e9ecef;
}

/* Branding Panel */
.branding-content {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
    max-width: 400px;
}

.branding-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.branding-icon i {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.branding-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.branding-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 40px;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    max-width: 280px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    transition: transform 0.2s, background 0.2s;
}

.feature-item:hover {
    transform: translateX(6px);
    background: rgba(255,255,255,0.18);
}

.feature-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: rgba(255,255,255,0.9);
}

.feature-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Form Panel */
.form-content {
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.5s ease;
}

.form-welcome {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.form-subtitle {
    color: #6c757d;
    margin-bottom: 28px;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
}

.input-group-text {
    background: #f8f9fa;
    border-right: none;
    color: #6c757d;
}

.form-control {
    border-left: none;
    padding: 10px 12px;
    font-size: 0.95rem;
}

.form-control:focus {
    box-shadow: none;
    border-color: #25D366;
}

.input-group:focus-within .input-group-text {
    border-color: #25D366;
    color: #128C7E;
}

.form-control:focus + .input-group-text {
    border-color: #25D366;
}

.btn-outline-secondary {
    border-left: none;
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
    color: #495057;
}

.form-check-input:checked {
    background-color: #128C7E;
    border-color: #128C7E;
}

.btn-login {
    background: linear-gradient(135deg, #128C7E, #075E54);
    border: none;
    color: #fff;
    padding: 12px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(18, 140, 126, 0.35);
    color: #fff;
}

.btn-login:active {
    transform: translateY(0);
}

.alert-danger {
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Animations */
@@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-left {
        flex: none;
        padding: 32px 24px;
        min-height: auto;
    }

    .login-right {
        flex: none;
        padding: 32px 24px;
    }

    .branding-icon {
        font-size: 3.5rem;
        margin-bottom: 12px;
    }

    .branding-title {
        font-size: 1.8rem;
    }

    .branding-features {
        display: none;
    }

    .form-welcome {
        font-size: 1.5rem;
    }
}
