:root {
    --primary-color: #8B0000;
    --primary-light: #a52a2a;
    --secondary-color: #FF8C00;
    --accent-color: #006400;
    --dark-color: #2c3e50;
    --light-color: #f8f9fc;
    --gray-color: #dddfeb;
    --white-color: #ffffff;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-color);
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background-color: var(--white-color);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    height: 80px;
    margin-bottom: 1rem;
}

.auth-header h2 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #6c757d;
    font-size: 0.9rem;
}

.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: var(--danger-color);
    border: 1px solid #f5c6cb;
}

.alert i {
    margin-right: 0.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark-color);
    font-weight: 500;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #6c757d;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--gray-color);
    border-radius: 0.25rem;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 0.5rem;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-btn:hover {
    background-color: var(--primary-light);
}

.auth-btn i {
    margin-right: 0.5rem;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-background {
    flex: 1;
    background: url('../images/train-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.background-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 2rem;
    max-width: 600px;
}

.background-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.background-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-card {
        max-width: 100%;
        padding: 2rem;
    }
    
    .auth-background {
        display: none;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-header h2 {
        font-size: 1.3rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .forgot-password {
        margin-top: 0.5rem;
    }
}

/* Register Page Specific Styles */
.error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.error-list li i {
    margin-right: 0.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-meter {
    display: flex;
    gap: 2px;
    margin-bottom: 0.25rem;
}

.strength-bar {
    height: 4px;
    width: 25%;
    background-color: #e9ecef;
    border-radius: 2px;
    transition: all 0.3s;
}

.strength-text {
    color: #6c757d;
    font-size: 0.8rem;
}

.strength-text span {
    font-weight: 500;
}

.terms-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.terms-group input {
    margin-right: 0.5rem;
}

.terms-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.terms-group a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-group a:hover {
    text-decoration: underline;
}