:root {
    --primary: #0d6efd;
    --secondary: #20c997;
    --bg-main: #ffffff;
    --bg-table: #e9ecef;
    --text-body: #343a40;
    --text-button: #ffffff;
    --success: #198754;
    --warning: #fd7e14;
    --error: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Roboto", sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    background: var(--bg-main);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 1200px;
    width: 100%;
    min-height: 600px;
    display: flex;
    position: relative;
}

.login-form-section {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.login-hero-section {
    flex: 1;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 100%
    );
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: 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.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
}

.hero-decorative {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(40px);
}

.hero-decorative-1 {
    top: 2.5rem;
    right: 2.5rem;
    width: 80px;
    height: 80px;
}

.hero-decorative-2 {
    bottom: 5rem;
    left: 2.5rem;
    width: 128px;
    height: 128px;
    background: rgba(32, 201, 151, 0.2);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.brand-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-body);
}

.brand-underline {
    width: 64px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 2px;
    margin: 0 auto;
}

.welcome-section {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-body);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    color: #6b7280;
    font-size: 1.125rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-body);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.25rem;
    pointer-events: none;
}

.form-control-enhanced {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--bg-main);
    color: var(--text-body);
}

.form-control-enhanced:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-control-enhanced.is-invalid {
    border-color: var(--error);
}

.form-control-enhanced.is-invalid:focus {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #6b7280;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-enhanced {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--text-body);
    cursor: pointer;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #0056d3);
    color: var(--text-button);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.footer-section {
    text-align: center;
    margin-top: 2rem;
}

.footer-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.footer-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #1ba085;
}

.hero-features {
    margin-top: 2rem;
    max-width: 320px;
}

.hero-feature {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.hero-feature-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: var(--error);
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .login-hero-section {
        display: none;
    }

    .login-form-section {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 0.5rem;
    }

    .login-form-section {
        padding: 1.5rem;
    }

    .welcome-title {
        font-size: 1.75rem;
    }

    .brand-text {
        font-size: 1.75rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
