/* Login Page Specific Styles */

.login-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.login-hero .hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.login-hero .hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.login-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.login-hero .hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.login-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.login-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.login-form-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

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

.login-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.login-form {
    padding: 3rem 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 16px;
    color: #7f8c8d;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

.input-group input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    height: 44px;
}

/* Only add right padding for input-group with password toggle */
.input-group.has-toggle input {
    padding-right: 56px;
    height: 44px;
}

.input-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-group input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    z-index: 2;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.3s ease;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #3498db;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #2c3e50;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #3498db;
    border-color: #3498db;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.forgot-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.btn-large {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-footer {
    text-align: center;
    padding: 0 2rem 2rem;
    border-top: 1px solid #e1e8ed;
    margin-top: 2rem;
    padding-top: 2rem;
}

.login-footer p {
    color: #7f8c8d;
    margin: 0;
}

.login-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.login-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.info-card h3 i {
    color: #3498db;
    font-size: 1.2rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f2f6;
    position: relative;
    padding-left: 1.5rem;
    color: #555;
}

.info-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 14px;
}

.info-card ul li:last-child {
    border-bottom: none;
}

.info-card p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Loading Spinner */
.loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
}

.loading.show {
    display: flex;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-bottom: 2rem;
    display: none;
}

.success-message.show {
    display: block;
}

.success-message i {
    margin-right: 0.5rem;
}

/* Error Message */
.error-message.global {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-bottom: 2rem;
    display: none;
}

.error-message.global.show {
    display: block;
}

.error-message.global i {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .login-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .login-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .login-header {
        padding: 2rem 1.5rem;
    }
    
    .login-header h2 {
        font-size: 2rem;
    }
    
    .login-form {
        padding: 2rem 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .login-info {
        order: -1;
    }
}

@media (max-width: 480px) {
    .login-hero {
        padding: 100px 0 60px;
    }
    
    .login-hero .hero-title {
        font-size: 2rem;
    }
    
    .login-header {
        padding: 1.5rem 1rem;
    }
    
    .login-form {
        padding: 1.5rem 1rem;
    }
    
    .login-footer {
        padding: 0 1rem 1.5rem;
    }
}
