/* ========================================
   CUSTOM LOGIN PAGE STYLING
   ======================================== */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Reset en base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login {
    background: linear-gradient(130deg, #1b355f 0%, #09578b 60%);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Background pattern */
body.login::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none" style="fill: %23ffffff; opacity: 0.1"><path d="M421.9,6.5c22.6-2.5,51.5,0.4,75.5,5.3c23.6,4.9,70.9,23.5,100.5,35.7c75.8,32.2,133.7,44.5,192.6,49.7 c23.6,2.1,48.7,3.5,103.4-2.5c54.7-6,106.2-25.6,106.2-25.6V0H0v30.3c0,0,72,32.6,158.4,30.5c39.2-0.7,92.8-6.7,134-22.4 c21.2-8.1,52.2-18.2,79.7-24.2C399.3,7.9,411.6,7.5,421.9,6.5z"></path></svg>') no-repeat center bottom;
    background-size: 260% 100%;
    transform: scaleY(-1);
    z-index: -1;
    pointer-events: none;
}

/* Show custom logo */
.login h1.wp-login-logo {
    display: block !important;
}

/* Logo styling - wordt overschreven door inline CSS */
.login h1 a {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 320px;
    height: 140px;
    margin: 0 auto 30px auto;
    display: block;
    position: relative;
    top: 0;
}

/* Remove top spacing from login container */
#login {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Login form container */
#loginform {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 2;
    border: none;
}

/* Password reset form container */
#lostpasswordform {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 2;
    border: none;
}

/* Welcome text styling - wordt toegevoegd via JavaScript */
.welcome-text {
    text-align: center;
    color: #1b355f !important;
    font-family: 'Giga Sans', sans-serif !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin-bottom: 30px !important;
    background: white !important;
    padding: 15px 20px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    z-index: 10 !important;
    display: block !important;
    width: 100% !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Form labels */
.login form label {
    font-family: 'Giga Sans', sans-serif;
    font-weight: 600;
    color: #1b355f;
    font-size: 1rem;
    margin-bottom: 8px;
    display: block;
}

/* Input fields */
.login form input[type="text"],
.login form input[type="password"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: #f8fafc !important;
    margin-bottom: 20px;
}

/* Input hover states */
.login form input[type="text"]:hover,
.login form input[type="password"]:hover {
    background: #f8fafc !important;
    border-color: #0BDEAB !important;
}

.login form input[type="text"]:focus,
.login form input[type="password"]:focus {
    border-color: #0BDEAB !important;
    background: white !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(11, 222, 171, 0.1) !important;
}

/* Submit button */
.login form .submit {
    margin-top: 10px !important;
}

.login form input[type="submit"] {
    background: linear-gradient(135deg, #0BDEAB 0%, #0ac39c 100%) !important;
    border: none !important;
    color: white !important;
    padding: 15px 30px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border-radius: 8px;
    width: 100%;
    cursor: pointer !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.login form input[type="submit"]:hover {
    background: linear-gradient(135deg, #0ac39c 0%, #0BDEAB 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 222, 171, 0.3);
}

/* Remember me checkbox */
.login form .forgetmenot {
    margin: 15px 0 20px 0 !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.login form .forgetmenot input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-right: 8px;
    order: 1;
}

.login form .forgetmenot label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    cursor: pointer;
    order: 2;
    margin: 0;
}

/* Links */
.login #nav {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.login #nav a {
    color: white !important;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    cursor: pointer !important;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
}

.login #nav a:hover {
    color: #0BDEAB !important;
    text-decoration: underline;
    background: rgba(255, 255, 255, 0.1);
}

/* Hide back to blog link */
.login #backtoblog {
    display: none !important;
}

/* Hide language switcher completely */
.language-switcher {
    display: none !important;
}

/* Error messages */
.login .message,
.login #login_error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

/* Success messages */
.login .message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Responsive design */
@media (max-width: 768px) {
    #loginform {
        margin: 20px;
        padding: 30px 25px;
        max-width: 90%;
    }
    
    .welcome-text {
        font-size: 1.5rem !important;
        padding: 12px 15px !important;
        max-width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
            .login h1 a {
                width: 280px;
                height: 120px;
            }
    
    .login form .forgetmenot {
        margin: 15px 0 20px 0 !important;
    }
    
    .login form .submit {
        margin-top: 10px !important;
    }
}

@media (max-width: 480px) {
    #loginform {
        margin: 15px;
        padding: 25px 20px;
        max-width: 95%;
    }
    
            .login h1 a {
                width: 240px;
                height: 100px;
            }
    
    .welcome-text {
        font-size: 1.3rem !important;
        padding: 10px 12px !important;
        max-width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .login form input[type="text"],
    .login form input[type="password"] {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .login form input[type="submit"] {
        padding: 12px 25px;
        font-size: 0.65rem;
        letter-spacing: 0.05px;
    }
    
    .login form .forgetmenot {
        margin: 15px 0 20px 0 !important;
    }
    
    .login form .submit {
        margin-top: 10px !important;
    }
}


/* Login error styling */
.login-error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
