:root {
    --primary: #1e3c72;
    --primary-dark: #0f2752;
    --primary-light: #2a5298;
    --secondary: #d4af37;
    --accent: #b8860b;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    color: var(--dark);
}

.login-container {
    display: flex;
    width: 1000px;
    max-width: 95%;
    height: 650px;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.login-left {
    flex: 1.2;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.header {
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.logo {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
}

.system-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.system-description {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 30px;
}

.features {
    list-style: none;
    margin-top: 30px;
}

.features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.features i {
    margin-right: 12px;
    color: var(--secondary);
    font-size: 18px;
}

.security-badge {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.security-badge i {
    font-size: 24px;
    margin-right: 12px;
    color: var(--secondary);
}

.login-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: white;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: var(--primary);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--gray);
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 18px;
}

.form-group input {
    width: 100%;
    padding: 14px 15px 14px 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background-color: #f9f9f9;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 18px;
}

.recaptcha-container {
    margin: 20px 0;
    text-align: center;
}

.recaptcha-container .g-recaptcha {
    display: inline-block;
    transform: scale(0.95);
    transform-origin: 0 0;
}

.options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
    font-size: 14px;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    box-shadow: 0 4px 10px rgba(30, 60, 114, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    box-shadow: 0 6px 15px rgba(30, 60, 114, 0.4);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    margin-right: 10px;
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

.error-message {
    color: var(--danger);
    font-size: 14px;
    margin-top: 8px;
    display: none;
    align-items: center;
}

.error-message i {
    margin-right: 5px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow);
    display: none;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background-color: var(--success);
}

.notification.error {
    background-color: var(--danger);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.recovery-message {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.recovery-message i {
    font-size: 40px;
    color: var(--success);
    margin-bottom: 15px;
}

.recovery-message h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.recovery-message p {
    color: var(--gray);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        height: auto;
    }

    .login-left, .login-right {
        padding: 40px 30px;
    }

    .login-left {
        padding-bottom: 30px;
    }

    .recaptcha-container .g-recaptcha {
        transform: scale(0.85);
    }
}

@media (max-width: 480px) {
    .login-left, .login-right {
        padding: 30px 20px;
    }

    .system-name {
        font-size: 26px;
    }

    .logo-container {
        margin-bottom: 20px;
    }

    .recaptcha-container .g-recaptcha {
        transform: scale(0.75);
    }
}