:root {
    --primary-color: #3d9db5;
    --primary-dark: #2a7b8f;
    --secondary-color: #6c757d;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --light-bg: #f8f9fa;
    --dark-text: #1f2937;
    --light-text: #6b7280;
    --accent-teal: #4ba9c3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e9ecef 0%, #ced4da 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: flex;
    min-height: 600px;
    backdrop-filter: blur(10px);
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #3d9db5 0%, #2a7b8f 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.auth-left::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.auth-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.auth-left h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-left p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.auth-left-icon {
    font-size: 120px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.auth-right {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-logo i {
    font-size: 2.5rem;
}

.auth-header h4 {
    color: var(--dark-text);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.alert {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    color: var(--dark-text);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.icon-field {
    position: relative;
}

.icon-field {
    position: relative;
}

.icon-field > i:first-child {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    font-size: 1.2rem;
    z-index: 1;
    pointer-events: none;
}

.form-control,
input[type="text"],
input[type="password"] {
    height: 50px;
    padding-left: 48px;
    padding-right: 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus,
input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    outline: none;
}

.errorlist {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--danger-color);
    font-size: 0.85rem;
}

.password-field {
    position: relative;
}

.password-field .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--light-text);
    font-size: 1.2rem;
    transition: color 0.3s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

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

.btn-login {
    width: 100%;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--light-text);
    font-size: 0.9rem;
}

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

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

@media (max-width: 768px) {
    .auth-left {
        display: none;
    }

    .auth-container {
        max-width: 450px;
    }

    .auth-right {
        padding: 40px 30px;
    }

    .auth-header h4 {
        font-size: 1.5rem;
    }
}
