/* Login Page Styles */

.login-body {
    background: red !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.login-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 10;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.login-header {
    background: #1976d2;
    color: white;
    padding: 50px 40px;
    text-align: center;
    position: relative;
}

.back-link {
    position: absolute;
    top: 15px;
    left: 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link:hover {
    color: white;
}

.club-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.club-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.club-logo-placeholder,
.platform-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.login-header h1 {
    font-size: 28px;
    margin: 0;
    font-weight: 700;
}

.login-header p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
}

.login-form-container {
    padding: 50px 40px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    text-align: center;
    padding: 0 20px;
    background-color: #f0f0f0;
    border-radius: 5px;
}

.form-group input {
    width: 100%;
    padding: 18px 45px 18px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    margin-top: 12px; /* Adjust for label */
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    margin-top: 12px; /* Adjust for label */
    transition: color 0.3s;
}

.password-toggle:hover {
    color: #1976d2;
}

.btn {
    padding: 18px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
}

.btn-primary {
    background: #1976d2;
    color: white;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.btn-primary:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.3);
}

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

.btn-full {
    width: 100%;
}

.login-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    color: #666;
    margin: 10px 0;
    font-size: 14px;
}

.login-footer a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: #1565c0;
    text-decoration: underline;
}

.alert {
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.alert-success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert i {
    font-size: 16px;
    flex-shrink: 0;
}

/* Loading state */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Form validation states */
.form-group input.success {
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group input.error {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

/* Responsive */
@media (max-width: 480px) {
    .login-page {
        padding: 15px;
    }
    
    .login-container {
        max-width: 100%;
        border-radius: 12px;
        margin: 0;
    }
    
    .login-header {
        padding: 40px 25px;
    }
    
    .login-header h1 {
        font-size: 26px;
    }
    
    .login-header h2 {
        font-size: 16px;
    }
    
    .club-logo,
    .club-logo-placeholder,
    .platform-logo {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .login-form-container {
        padding: 30px 20px;
    }
    
    .form-group input {
        padding: 12px 40px 12px 20px;
    }
    
    .form-icon,
    .password-toggle {
        right: 12px;
    }
    
    .back-link {
        position: static;
        display: block;
        margin-bottom: 20px;
        text-align: left;
    }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeIn 0.5s ease-out;
}

/* Focus indicators for accessibility */
.btn:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

.form-group input:focus-visible {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-group input {
        border-width: 3px;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
}

/* Login Background Shapes */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 50%;
    animation-delay: 4s;
}

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

/* Ensure login card is properly positioned */
.login-card {
    position: relative;
    z-index: 10;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .login-container {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .login-background .bg-shape {
        opacity: 0.5;
    }
}

/* Login Logo Styles */
.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.login-logo i {
    font-size: 48px;
    color: white;
    background: rgba(255, 255, 255, 0.35);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.login-logo i:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.login-logo h1 {
    font-size: 32px;
    margin: 0;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Enhanced login header padding */
.login-header {
    background: #1976d2;
    color: white;
    padding: 50px 30px;
    text-align: center;
    position: relative;
}

.login-header h2 {
    font-size: 18px;
    margin: 0;
    font-weight: 400;
    opacity: 0.95;
    margin-top: 10px;
}

/* Enhanced form container padding */
.login-form-container {
    padding: 50px 40px;
}

/* Responsive adjustments for login logo */
@media (max-width: 480px) {
    .login-logo i {
        font-size: 36px;
        width: 60px;
        height: 60px;
    }
    
    .login-logo h1 {
        font-size: 24px;
    }
    
    .login-header {
        padding: 40px 30px;
    }
    
    .login-form-container {
        padding: 40px 30px;
    }
}
