/* Login Page CSS */

/* Hero Section */
.login-hero {
    position: relative;
    padding: 100px 0 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -50px;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0;
    font-weight: 300;
}

/* Animation */
.animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Section */
.login-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Login Container */
.login-container {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #666;
    font-size: 1rem;
}

/* Social Login */
.social-login {
    margin-bottom: 30px;
}

.social-title {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn.google-btn:hover {
    border-color: #DB4437;
    color: #DB4437;
}

.social-btn.facebook-btn:hover {
    border-color: #4267B2;
    color: #4267B2;
}

.social-icon {
    width: 20px;
    height: 20px;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    position: relative;
    display: inline-block;
    padding: 0 20px;
    background: white;
    color: #666;
    font-size: 0.9rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #764ba2;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #999;
}

.form-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 5px;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-container input:checked + .checkmark:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    user-select: none;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading:after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #666;
}

.signup-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.signup-link:hover {
    color: #764ba2;
}

/* Error Messages */
.error-message {
    display: block;
    margin-top: 8px;
    color: #ff4757;
    font-size: 0.9rem;
}

/* Illustration */
.login-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-illustration-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.illustration-content {
    text-align: center;
    margin-top: 40px;
}

.illustration-content h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.illustration-content p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.feature-icon {
    width: 20px;
    height: 20px;
}

/* Success/Error States */
.form-input.error {
    border-color: #ff4757;
}

.form-input.success {
    border-color: #2ed573;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .login-illustration {
        order: -1;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 30px;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .login-section {
        padding: 40px 0;
    }
    
    .login-container {
        padding: 25px 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .login-title {
        font-size: 1.8rem;
    }
    
    .login-hero {
        padding: 80px 0 30px;
    }
}

/* Additional Animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}