/* WordPress Login Page Customization */

/* Body background */
body.login {
    background: #f8f8f8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Login form container */
#login {
    width: 360px;
    padding: 8% 0 0;
    margin: auto;
}

/* Logo customization */
.login h1 a,
.login h1 a:hover,
.login h1 a:focus {
    background-image: url('../../../library/dist/assets/images/pavilion--logo.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 200px;
    height: 80px;
    text-indent: -9999px;
    outline: none;
    overflow: hidden;
    display: block;
    margin: 0 auto 24px;
    border: none;
    box-shadow: none;
}

/* Login form styling */
.login form {
    margin: 24px 0;
    padding: 32px 32px 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Links - Replace WordPress blue with brand red */
.login a {
    color: #D92027 !important;
    text-decoration: none;
}

.login a:hover,
.login a:active {
    color: #b91c24 !important;
}

.login a:focus {
    color: #9c1820 !important;
    box-shadow: 0 0 0 2px #D92027 !important;
    outline: 2px solid transparent;
}

/* Primary button styling */
.login .button-primary {
    background: #D92027 !important;
    border-color: #D92027 !important;
    box-shadow: 0 1px 0 #b91c24 !important;
    color: #fff !important;
    text-shadow: 0 -1px 1px #b91c24, 1px 0 1px #b91c24, 0 1px 1px #b91c24, -1px 0 1px #b91c24 !important;
    font-weight: 600;
    border-radius: 4px;
    padding: 6px 12px !important;
    min-height: 40px;
    line-height: 1.4;
}

.login .button-primary:hover,
.login .button-primary:focus {
    background: #b91c24 !important;
    border-color: #b91c24 !important;
    box-shadow: 0 1px 0 #9c1820 !important;
}

.login .button-primary:active {
    background: #9c1820 !important;
    border-color: #9c1820 !important;
    box-shadow: inset 0 2px 0 #7f1319 !important;
}

/* Input focus states */
.login input:focus {
    border-color: #D92027 !important;
    box-shadow: 0 0 0 1px #D92027 !important;
    outline: 2px solid transparent;
}

/* Password visibility button focus */
.login .button.wp-hide-pw:focus {
    border-color: #D92027 !important;
    box-shadow: 0 0 0 1px #D92027 !important;
}

/* Form labels */
.login label {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

/* Input fields */
.login form .input,
.login input[type="text"],
.login input[type="password"] {
    font-size: 18px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login form .input:hover,
.login input[type="text"]:hover,
.login input[type="password"]:hover {
    border-color: #ccc;
}

/* Messages and notices */
.login .message,
.login .notice,
.login .success {
    border-left: 4px solid #D92027;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login .success {
    border-left-color: #28a745;
}

.login .notice-error {
    border-left-color: #dc3545;
}

/* Navigation links */
.login #nav,
.login #backtoblog {
    text-align: center;
    padding: 0;
    margin: 24px 0;
}

.login #nav a,
.login #backtoblog a {
    color: #666 !important;
    font-size: 14px;
    text-decoration: none;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #D92027 !important;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    #login {
        width: 90%;
        padding: 5% 5% 0;
    }
    
    .login form {
        padding: 24px 20px;
    }
    
    .login h1 a {
        width: 160px;
        height: 64px;
    }
    
    .login form .input,
    .login input[type="text"],
    .login input[type="password"] {
        font-size: 16px;
        padding: 10px 12px;
    }
}

/* Privacy policy link */
.login .privacy-policy-page-link {
    text-align: center;
    margin: 2em 0;
}

.login .privacy-policy-page-link a {
    color: #666 !important;
    font-size: 13px;
}

.login .privacy-policy-page-link a:hover {
    color: #D92027 !important;
}

/* Remember me checkbox */
.login .forgetmenot input[type="checkbox"]:checked::before {
    color: #D92027;
}

/* Additional focus improvements */
.login input[type="checkbox"]:focus {
    box-shadow: 0 0 0 2px #D92027;
}

/* Loading state for buttons */
.login .button-primary.loading {
    opacity: 0.7;
    pointer-events: none;
}

.wp-login-log-in,
.language-switcher {
    display: none;
}