@import url('fontello.css');

:root {
    /* Fonts */
    --font-primary: 'Greycliff-CF-Regular', Arial, sans-serif;
    --font-bold: 'Greycliff-CF-Bold', Arial, sans-serif;
    --icon-font: 'Fontello';
    
    /* Colors */
    --font-color: #eb0023;
    --font-color-grey: #a2a2a2;
    --font-color-black: #000;
    --bg-color: white;
    --bg-color-transparent: transparent; 
    --bg-color-red: #ff00281a;
    --btn-color-bg: #eb0023;
    --btn-color-bg-hover: black;
    --btn-color-font: white;
    --border-color: #000;
    --login-success-background-color: #adedac;
    --login-success-border-color: #33ce66;
    --login-error-background-color: #FF00281A;
    --login-error-border-color: #EB0023;

    /* Sizes */
    --font-size: 1em;
    --font-size-small: 0.9em; 
    --font-size-medium: 1.4em; 
    --border-radius: 10px;

    /* Spacing */
    --spacing: 15px;
    --spacing-medium: 20px;
    --spacing-large: 25px;
}

@font-face {
    font-family: 'Greycliff-CF-Regular';
    src: url('../font/Greycliff-CF-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Greycliff-CF-Bold';
    src: url('../font/Greycliff-CF-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Body */
body {
    font-family: var(--font-primary);
    font-size: var(--font-size-small);
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    background: var(--bg-color);
    margin: 0;
    background-image: url(../img/bg.webp);
    background-position: center center;
    background-repeat: repeat;
}

/* Login */
#login {
    padding: 0px;
}

#login .logo {
    display: block;
    margin: 0 auto 30px auto;
    width: 100px;
}
#lottie-logo {
    display: block;
    margin: 0 auto 30px auto;
    cursor: pointer; /* Change cursor to indicate interactivity */
    will-change: transform;
    contain: content;
}

.login-action-confirm_admin_email #login {
    padding: 5% 0 0;
}

#login p, #login .user-pass-wrap {
    position: relative;
}

#login label:has(+ input, + div.wp-pwd) {
    position: absolute;
    left: var(--spacing-medium);
    z-index: 1;
    display: flex;
    align-items: center;
    height: 55px;
    color: var(--font-color-grey);
    font-size: var(--font-size-medium);
}

#login label:has(+ input, + div.wp-pwd):before {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-top: -6px;
    margin-right: var(--spacing);
    font-family: var(--icon-font);
}

#login label:has(+ input:not(:placeholder-shown), + div.wp-pwd input:not(:placeholder-shown)) {
    align-items: start;
    font-size: var(--font-size); 
}

#login label:has(+ input:not(:placeholder-shown), + div.wp-pwd input:not(:placeholder-shown)):before {
    align-self: center;
    font-size: var(--font-size-medium);
}

#login label[for=user_login]:before {
    content: '\e800';
}

#login label[for=user_pass]:before {
    content: '\e801';
}

.wp-core-ui #login .wp-pwd .button, .wp-core-ui #login .wp-pwd .button-secondary {
    color: var(--font-color-grey);
}
.wp-core-ui #login .wp-pwd .button-secondary:hover, .wp-core-ui #login .wp-pwd .button.hover, .wp-core-ui #login .wp-pwd .button:hover {
    color: var(--font-color-black);
}

#login .notice {
    max-width: 400px;
}

#login form {
    display: flex;
    flex-direction: column;
    margin-top: var(--spacing-large);
    padding: 0;
    border: none;
    box-shadow: none;
    background: var(--bg-color-transparent);
}

#login form input[type=text], #login form input[type=password] {
    padding: var(--spacing) var(--spacing-medium) var(--spacing) calc(39px + var(--spacing));
    color: var(--font-color-black);
    font-size: var(--font-size-medium);
    border: 1px solid var(--border-color);
    border-radius: 0px;
}

#login form input[type=text]:focus, #login form input[type=password]:focus {
    outline: none;
    border: 1px solid var(--btn-color-bg);
    box-shadow: 0 0 0 1px var(--btn-color-bg);
}

#login form#resetpassform .wp-generate-pw {
    display: none;
}

#login form .forgetmenot {
    display: inline-block;
    order: 4;
    width: fit-content;
}

#login form .forgetmenot label {
    align-items: center;
    color: var(--font-color-grey);
    font-size: var(--font-size); 
}

#login form button.wp-hide-pw {
    height: 100%;
}

#login form button.wp-hide-pw .dashicons {
    top: 0;
}

#login form button.wp-hide-pw:focus {
    border: none;
    box-shadow: none;
}

#login .submit {
    font-family: var(--font-bold);
    position: relative;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: var(--spacing);
    padding: 20px;
    font-size: var(--font-size);
    line-height: normal;
    background: var(--btn-color-bg);
    border: none;
    border-radius: var(--border-radius);
}

#login .submit:hover {
    background: var(--btn-color-bg-hover);
}

#login .submit input {
    min-height: 0;
    font-size: var(--font-size-medium);
    text-transform: uppercase;
    line-height: normal;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
}

#login #lostpasswordform .submit input {
    font-size: var(--font-size);    
}

#login #nav {
    float: right;
    width: fit-content;
    margin: -23px 0 0;
    padding: 0;
}

#login #nav a {
    color: var(--font-color-black);
    font-size: var(--font-size); 
}

#login #nav a:hover {
    color: var(--font-color);
}

#login #resetpassform + #nav, #login #lostpasswordform + #nav {
    margin: 0;
}

#login #nav a.wp-login-register {
    display: block;
    text-align: right;
}

/* Footer */
.login footer {
    padding: 20px 0;
}

.email, .kennisbank {
    color: #333;
    text-decoration: none;
    margin-right: 20px;
    font-size: 16px;
}

.email:hover, .kennisbank:hover {
    color: #EB0023;
}

footer .email::before, footer .kennisbank::before {
    font-family: var(--icon-font);
    margin-right: 5px;
}

footer .email::before {
    content: '\e800';
}

footer .kennisbank::before {
    content: '\e802';
}

/* Notices */
.notice, .login .notice {
    color: var(--font-color-black);
    border: 1px solid;
    box-shadow: none;
    margin: var(--spacing-medium) 0;
}

.hidden.notice {
    display: none;
}

.notice:not(.notice-info, .notice-warning, .notice-error, .notice-success, .info, .warning, .error, .success, .w3tc_note, .w3tc_error, .wpml-notice, .otgs-installer-notice, .notice-yoast, .updated) {
    padding-left: var(--spacing);
}

.notice a, .login .notice a, .notice .button-link {
    color: var(--font-color-black);
    text-decoration: underline;
}

.notice a:hover, .notice .button-link:hover {
    color: var(--font-color-black);
}

.notice strong {
    font-family: var(--font-bold);
}

.notice-info.notice, .info.notice, .notice-success.notice, .success.notice {
    background-color: var(--login-success-background-color);
    border-color: var(--login-success-border-color);
}

.notice-warning.notice, .warning.notice, .notice-error.notice, .error.notice {
    background-color: var(--login-error-background-color);
    border-color: var(--login-error-border-color);
}

.notice p:first-child, .notice h1:first-child, .notice h2:first-child {
    margin-top: 0;
}

/* Remover */
.language-switcher, .login .privacy-policy-page-link, .login h1 a {
    display: none;
}

/* Back to Blog */
.login #backtoblog {
    text-align: center;
    overflow: hidden;
    padding: 0px;
}

.login #backtoblog a {
    background: var(--bg-color-red);
    color: var(--font-color);
    padding: 5px 20px 6px 15px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
    max-width: 100%; 
}

.login #backtoblog a:hover {
    color: black;
}

.login #backtoblog a::before {
    content: '\e803'; /* Unicode for the icon */
    font-family: var(--icon-font);
    margin-right: 8px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #lottie-logo {
        display: none;
    }
    
    .logo {
        display: block !important;
    }
}

/* Accessibility improvements */
#login .submit:focus-within {
    outline: 2px solid var(--btn-color-bg);
    outline-offset: 2px;
}

/* Add focus styles for all interactive elements */
a:focus,
button:focus {
    outline: 2px solid var(--btn-color-bg);
    outline-offset: 2px;
}
