
/* ========================================
   MODERNE LOGIN STYLING - TV YSSELSTEYN 
   ======================================== */

.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Tennis achtergrond pattern */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 2px, transparent 2px);
    background-size: 50px 50px, 80px 80px, 120px 120px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

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

/* Logo sectie */
.logo {
    text-align: center;
    margin-bottom: 2.5rem;
    color: white;
    animation: slideDown 1s ease-out;
}

.logo h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.3);
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.logo p {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Hoofdformulier */
.login-container form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.15),
        0 8px 25px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
    width: 100%;
    max-width: 420px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    animation: slideUp 1s ease-out 0.3s both;
}

/* Form groepen */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group:last-of-type {
    margin-bottom: 2.5rem;
}

/* Labels */
.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

/* Input velden */
.form-group input[type="text"],
.form-group input[type="email"], 
.form-group input[type="password"] {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background: #ffffff;
    font-weight: 400;
    color: #2d3748;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 2px 8px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
    background: #ffffff;
}

.form-group input:hover:not(:focus) {
    border-color: #cbd5e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Placeholder styling */
.form-group input::placeholder {
    color: #a0aec0;
    font-weight: 300;
}

/* Submit knop */
.login-container form button[type="submit"] {
    width: 100%;
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.login-container form button[type="submit"]:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.4),
        0 4px 12px rgba(118, 75, 162, 0.3);
}

.login-container form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.3),
        0 2px 6px rgba(118, 75, 162, 0.2);
}

/* Glow effect op knop */
.login-container form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-container form button[type="submit"]:hover::before {
    opacity: 1;
}

/* Forgot Links Sectie */
.forgot-links {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 1.5rem;
    animation: slideUp 1s ease-out 0.6s both;
}

.forgot-link-group {
    margin-bottom: 0.75rem;
}

.forgot-link-group:last-child {
    margin-bottom: 0;
}

.forgot-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
}

.forgot-link:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Register Link */
.register-link {
    text-align: center;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    animation: slideUp 1s ease-out 0.9s both;
}

.register-link p {
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 400;
}

.register-link a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.register-link a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.register-link a:hover {
    color: #f59e0b;
    text-decoration: none;
}

.register-link a:hover::after {
    width: 100%;
}

/* Alert berichten */
.login-container .alert {
    width: 100%;
    max-width: 420px;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    border: none;
    backdrop-filter: blur(10px);
    animation: slideDown 0.5s ease-out;
}

.login-container .alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.login-container .alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.login-container .alert-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.login-container .alert-info {
    background: rgba(59, 130, 246, 0.15);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Animaties */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-container form {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem 1.5rem 0.5rem;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .logo p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 0.5rem;
    }
    
    .login-container form {
        padding: 2rem 1.25rem;
        margin: 0 0.25rem 1rem 0.25rem;
        border-radius: 16px;
    }
    
    .logo h1 {
        font-size: 2.2rem;
    }
    
    .logo p {
        font-size: 1rem;
    }
    
    .form-group input {
        padding: 0.875rem 1rem;
    }
    
    .login-container form button[type="submit"] {
        padding: 1rem 1.5rem;
    }
}

/* Dark mode ondersteuning */
@media (prefers-color-scheme: dark) {
    .login-container form {
        background: rgba(30, 30, 30, 0.95);
        border-color: rgba(255,255,255,0.1);
    }
    
    .form-group label {
        color: #e2e8f0;
    }
    
    .form-group input {
        background: rgba(255,255,255,0.05);
        border-color: rgba(255,255,255,0.1);
        color: #e2e8f0;
    }
    
    .form-group input:focus {
        background: rgba(255,255,255,0.08);
    }
}

/* Loading state */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Toegankelijkheid verbeteringen */
.form-group input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .login-container::before,
    .logo,
    .login-container form,
    .forgot-links,
    .register-link {
        animation: none;
    }
    
    .login-container form button[type="submit"] {
        transition: none;
    }
}



/* ========================================
   MODERNE FORGOT PASSWORD STYLING
   ======================================== */

/* Reset info sectie */
.reset-info {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}

.reset-info p {
    margin: 0;
    color: rgba(255,255,255,0.95);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
}

/* Back links */
.back-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.back-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Help text */
.help-text {
    margin-top: 2rem;
    text-align: center;
    background: rgba(255,255,255,0.08);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.help-text p {
    margin: 0;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

.help-text small {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Specifieke styling voor reset password pagina */
.login-container .reset-info h3 {
    color: rgba(255,255,255,0.95);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Email input specifiek */
.form-group input[type="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0aec0'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

/* Password inputs specifiek - Aangepast voor toggle knop */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 3.5rem !important;
}

.toggle-password {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 3.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 0 12px 12px 0;
    z-index: 10;
}

.toggle-password:hover {
    background: rgba(102, 126, 234, 0.08);
}

.toggle-password:focus {
    outline: none;
    background: rgba(102, 126, 234, 0.12);
}

.toggle-password:active {
    transform: scale(0.95);
}

.eye-text {
    font-size: 22px;
    line-height: 1;
    transition: all 0.3s ease;
    user-select: none;
}

.toggle-password:hover .eye-text {
    transform: scale(1.1);
}

/* Als wachtwoord zichtbaar is, toon een andere emoji */
.toggle-password.password-visible .eye-text::before {
    content: '🙈';
}

.toggle-password.password-visible .eye-text {
    display: inline-block;
}

.toggle-password.password-visible .eye-text {
    font-size: 0;
}

.toggle-password.password-visible .eye-text::before {
    font-size: 22px;
}

/* Username input voor reset password pagina */
.username-display {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}



/* ============================================
   FIX: iPad/iPhone Input Veld Kleurprobleem
   Opgelost door TV Ysselsteyn - 2025
   ============================================ */

/* iOS Safari autofill fix - BELANGRIJK! */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #000000 !important;
}

/* Specifiek voor form inputs in login container */
.form-group input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #000000 !important;
}

/* Fix voor iPhone keyboard en focus */
@supports (-webkit-touch-callout: none) {
    /* Dit code werkt ALLEEN op iOS apparaten */
    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-group input[type="email"] {
        background-color: white !important;
        color: #000000 !important;
        font-size: 16px; /* Voorkomt auto-zoom op iPhone */
        -webkit-appearance: none;
        -webkit-border-radius: 0;
        -webkit-user-select: text;
    }
    
    .form-group input:focus {
        background-color: white !important;
        color: #000000 !important;
        border-color: #667eea;
        -webkit-text-fill-color: #000000 !important;
    }
    
    .form-group input::selection {
        background: rgba(102, 126, 234, 0.3);
        color: #000000;
    }
}

/* Extra fix voor iPad Safari specifiek */
@media (max-width: 1024px) and (min-height: 600px) {
    input[type="text"],
    input[type="password"],
    input[type="email"] {
        font-size: 16px;
        -webkit-appearance: none;
        -webkit-border-radius: 4px;
    }
    
    input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="email"]:focus {
        background-color: white !important;
        color: #000000 !important;
    }
}

/* Donkere mode fix voor iOS */
@media (prefers-color-scheme: dark) {
    input:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 30px #1e1e1e inset !important;
        -webkit-text-fill-color: #ffffff !important;
    }
}

/* ============================================
   REMEMBER ME CHECKBOX STYLING - iPad/iOS FIX
   ============================================ */

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    margin-bottom: 1.5rem !important;
}

.remember-me input[type="checkbox"] {
    /* Maak de checkbox groter en makkelijker te raken op iPad */
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: white;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    margin: 0;
}

.remember-me input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.remember-me input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.remember-me input[type="checkbox"]:hover {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.remember-me input[type="checkbox"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.remember-me label {
    margin: 0 !important;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}

/* Extra grote tap targets voor iPad/iOS */
@supports (-webkit-touch-callout: none) {
    .remember-me input[type="checkbox"] {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }
    
    .remember-me {
        padding: 1.25rem;
        min-height: 60px; /* Grotere tap target */
    }
    
    .remember-me label {
        font-size: 1rem;
    }
}

/* Tablet specifieke aanpassingen */
@media (max-width: 1024px) {
    .remember-me input[type="checkbox"] {
        width: 26px;
        height: 26px;
        min-width: 26px;
        min-height: 26px;
    }
}

/* Mobile specifieke aanpassingen */
@media (max-width: 768px) {
    .remember-me {
        padding: 1rem 0.875rem;
    }

    .remember-me label {
        font-size: 0.9rem;
    }

    /* Grotere toggle knop voor mobiel */
    .toggle-password {
        width: 3rem;
    }

    .eye-text {
        font-size: 20px;
    }

    .toggle-password.password-visible .eye-text::before {
        font-size: 20px;
    }
}

/* iOS specifieke aanpassingen voor toggle knop */
@supports (-webkit-touch-callout: none) {
    .toggle-password {
        width: 3.5rem;
        min-height: 48px; /* iOS minimum touch target */
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.1);
    }

    .eye-text {
        font-size: 24px;
    }

    .toggle-password.password-visible .eye-text::before {
        font-size: 24px;
    }
}
