/* Hero Section */
.login-hero {
    background: linear-gradient(135deg, #2E5984, #1976D2);
    padding: 80px 0 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Lato', sans-serif;
}

.hero-content h1 i {
    color: #4CAF50;
    margin-right: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Login Form Section */
.login-form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
    border: 1px solid #e9ecef;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-icon {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.login-header h2 {
    font-size: 2rem;
    color: #2E5984;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-header p {
    color: #666;
    font-size: 1rem;
}

/* Messages */
.messages-container {
    margin-bottom: 30px;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.alert i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.alert-success {
    background: #e8f5e8;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

/* Form Errors */
.form-errors {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.error-header {
    display: flex;
    align-items: center;
    color: #c62828;
    font-weight: 600;
    margin-bottom: 10px;
}

.error-header i {
    margin-right: 8px;
}

.error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-list li {
    color: #c62828;
    padding: 5px 0;
    padding-left: 20px;
}

.error-list li::before {
    content: "•";
    color: #f44336;
    margin-right: 8px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2E5984;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group label i {
    margin-right: 8px;
    color: #4CAF50;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group input {
    width: 100%;
    padding: 15px 50px 15px 45px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    background: white;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #666;
    font-size: 1rem;
    z-index: 2;
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #4CAF50;
}

.help-text {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.remember-me input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input:checked + .checkmark {
    background: #4CAF50;
    border-color: #4CAF50;
}

.remember-me input:checked + .checkmark::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #2E5984;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #4CAF50;
    text-decoration: none;
}

.forgot-password i {
    margin-right: 5px;
}

/* Submit Button */
.form-submit {
    margin-bottom: 30px;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #45a049, #5cb85c);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.login-btn i {
    font-size: 1.2rem;
}

/* Links */
.register-link,
.portal-link {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
}

.register-link {
    margin-bottom: 10px;
}

.register-link p,
.portal-link p {
    margin: 0;
    color: #666;
}

.register-link a,
.portal-link a {
    color: #2E5984;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover,
.portal-link a:hover {
    color: #4CAF50;
    text-decoration: none;
}

.register-link a i,
.portal-link a i {
    margin-right: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .login-form-section {
        padding: 40px 0;
    }
    
    .login-card {
        padding: 30px 25px;
        margin: 20px 0;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .form-group input {
        padding: 12px 45px 12px 40px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .login-card {
        padding: 25px 20px;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
}