/* Modern Login Styles */
.modern-login-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.modern-login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Generic football field pattern - removed external image to avoid logo issues */
    background-image:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,0.05) 49.5%, rgba(255,255,255,0.05) 50.5%, transparent 50.5%),
        linear-gradient(0deg, transparent 49.5%, rgba(255,255,255,0.05) 49.5%, rgba(255,255,255,0.05) 50.5%, transparent 50.5%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    opacity: 1;
    z-index: 1;
}

/* Floating football elements */
.modern-login-section::after {
    content: '⚽';
    position: absolute;
    top: 15%;
    left: 10%;
    font-size: 60px;
    opacity: 0.08;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.modern-login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-brand {
    text-align: center;
    margin-bottom: 40px;
}

.login-brand h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.login-brand p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

.modern-form-group {
    position: relative;
    margin-bottom: 25px;
}

.modern-form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    font-family: 'Poppins', sans-serif;
}

.modern-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.modern-form-control::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.form-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 18px;
    pointer-events: none;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    display: none;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.custom-checkbox input:checked + .checkbox-mark {
    background: #667eea;
    border-color: #667eea;
}

.custom-checkbox input:checked + .checkbox-mark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #5a6fd8;
    text-decoration: none;
}

.modern-login-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.modern-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.modern-login-btn:active {
    transform: translateY(0);
}

.modern-login-btn i {
    margin-right: 10px;
    font-size: 18px;
}

.alert-modern {
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-success-modern {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
}

.alert-danger-modern {
    background: linear-gradient(135deg, #e17055, #fd79a8);
    color: white;
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-login-card {
        margin: 20px;
        padding: 40px 30px;
    }

    .login-brand h1 {
        font-size: 2rem;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .modern-login-card {
        padding: 30px 20px;
    }

    .login-brand h1 {
        font-size: 1.8rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-login-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state */
.modern-login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.modern-login-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

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

/* Additional Professional Enhancements */

/* Floating label effect */
.modern-form-group.focused .modern-form-control {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* Input validation states */
.modern-form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.modern-form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Enhanced button states */
.modern-login-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.5);
}

.modern-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Social login integration ready */
.social-login-divider {
    text-align: center;
    margin: 30px 0 20px;
    position: relative;
    color: #6c757d;
}

.social-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
    z-index: 1;
}

.social-login-divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 20px;
    position: relative;
    z-index: 2;
    font-size: 14px;
    font-weight: 500;
}

/* Enhanced checkbox styling */
.custom-checkbox:hover .checkbox-mark {
    border-color: #667eea;
    transform: scale(1.05);
}

.custom-checkbox input:checked + .checkbox-mark {
    transform: scale(1);
    animation: checkboxPop 0.3s ease-out;
}

@keyframes checkboxPop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Professional shadows and depth */
.modern-login-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Enhanced focus states for accessibility */
.modern-form-control:focus,
.custom-checkbox:focus-within .checkbox-mark,
.forgot-password:focus,
.modern-login-btn:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .modern-login-card {
        background: rgba(28, 32, 36, 0.95);
        color: #fff;
    }

    .login-brand p {
        color: #adb5bd;
    }

    .modern-form-control {
        background: #2d3748;
        border-color: #4a5568;
        color: #fff;
    }

    .modern-form-control::placeholder {
        color: #718096;
    }

    .form-icon {
        color: #718096;
    }
}

/* Print styles */
@media print {
    .modern-login-section {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .modern-login-card {
        border: 2px solid #000;
    }

    .modern-form-control {
        border-width: 2px;
    }

    .modern-login-btn {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .modern-login-card,
    .modern-form-control,
    .modern-login-btn,
    .checkbox-mark {
        animation: none;
        transition: none;
    }
}

/* Enhanced mobile experience */
@media (max-width: 576px) {
    .modern-login-section {
        padding: 20px 10px;
    }

    .modern-form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .login-options {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .custom-checkbox {
        justify-content: center;
        margin-bottom: 15px;
    }
}

/* Loading animation improvements */
.modern-login-btn.loading {
    color: transparent;
}

.modern-login-btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    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;
    transform: translate(-50%, -50%);
}

/* Professional error states */
.alert-modern {
    display: flex;
    align-items: center;
    animation: slideInDown 0.3s ease-out;
}

.alert-modern i {
    margin-right: 10px;
    font-size: 16px;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Professional typography */
.modern-login-card {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

.login-brand h1 {
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Enhanced form field focus ring */
.modern-form-control:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Professional spacing and alignment */
.modern-login-card > * + * {
    margin-top: 0;
}

.login-brand + .alert-modern {
    margin-top: 0;
}

.alert-modern + form {
    margin-top: 0;
}

/* Enhanced button ripple effect */
.modern-login-btn {
    position: relative;
    overflow: hidden;
}

.modern-login-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modern-login-btn:active::after {
    width: 300px;
    height: 300px;
}
