/**
 * WordPress Login Page Custom Styles
 * Brand colors: cod-gray (#141414), mine-shaft (#222222), gallery (#F0F0F0)
 */

/* Body and Background */
body.login {
    background: linear-gradient(135deg, #141414 0%, #222222 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Login Logo */
.login h1 a {
    background-image: url('../logo/web-logo-black (2).svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 320px;
    height: 120px;
    margin: 0 auto 30px;
    filter: invert(1); /* Make the black logo white on dark background */
}

/* Login Form Container */
#login {
    padding: 6% 0 0;
}

.login form {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    margin-top: 0;
}

/* Form Labels */
.login label {
    color: #141414;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Form Inputs */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background: #F0F0F0;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    width: 100%;
    box-shadow: none;
    transition: all 0.3s ease;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    background: #fff;
    border-color: #141414;
    box-shadow: 0 0 0 4px rgba(20, 20, 20, 0.1);
    outline: none;
}

/* Remember Me Checkbox */
.login .forgetmenot {
    margin-bottom: 20px;
}

.login .forgetmenot label {
    font-weight: 400;
}

/* Submit Button */
.login .button-primary {
    background: #141414;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(20, 20, 20, 0.2);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    height: auto;
    width: 100%;
    transition: all 0.3s ease;
    text-shadow: none;
    margin-top: 20px;
}

.login .button-primary:hover,
.login .button-primary:focus {
    background: #222222;
    box-shadow: 0 6px 20px rgba(20, 20, 20, 0.3);
    transform: translateY(-2px);
}

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

/* Links */
.login #nav,
.login #backtoblog {
    padding: 0;
    margin: 24px 0 0;
}

.login #nav a,
.login #backtoblog a {
    color: #F0F0F0;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #fff;
}

/* Registration Link Styling */
.login #nav a:first-child {
    background: #F0F0F0;
    color: #141414;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.login #nav a:first-child:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Lost Password Link */
.login #nav a:last-child {
    color: #F0F0F0;
}

/* Error and Message Boxes */
.login .message,
.login .notice,
.login #login_error {
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    margin: 0 0 24px;
    color: #141414;
}

.login #login_error {
    background: #fee;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.login .message {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

/* Welcome Message */
.login .htl-welcome {
    background: linear-gradient(135deg, #141414 0%, #222222 100%);
    color: #fff;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    padding: 20px;
    border: none;
}

/* Privacy Policy Link */
.login .privacy-policy-page-link {
    margin-top: 20px;
    text-align: center;
}

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

/* Custom Footer */
.htl-login-footer {
    text-align: center;
    margin-top: 40px;
    color: #F0F0F0;
    font-size: 14px;
}

.htl-login-footer p {
    margin: 0;
}

/* Language Switcher (if present) */
.login .language-switcher {
    margin: 20px 0;
}

.login .language-switcher select {
    background: #F0F0F0;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
}

/* Loading States */
.login form.loading .button-primary {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Design */
@media screen and (max-width: 782px) {
    .login h1 a {
        width: 280px;
        height: 100px;
    }
    
    .login form {
        padding: 30px 20px;
    }
    
    .login .button-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .login form {
        background: #222222;
        color: #F0F0F0;
    }
    
    .login label {
        color: #F0F0F0;
    }
    
    .login input[type="text"],
    .login input[type="password"],
    .login input[type="email"] {
        background: #141414;
        color: #F0F0F0;
        border-color: #333;
    }
    
    .login input[type="text"]:focus,
    .login input[type="password"]:focus,
    .login input[type="email"]:focus {
        background: #1a1a1a;
        border-color: #F0F0F0;
        box-shadow: 0 0 0 4px rgba(240, 240, 240, 0.1);
    }
    
    .login .message,
    .login .notice {
        background: #222222;
        color: #F0F0F0;
    }
}

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

.login form {
    animation: fadeIn 0.5s ease;
}

.login h1 a {
    animation: fadeIn 0.5s ease 0.1s both;
}

/* Focus Visible for Accessibility */
.login .button-primary:focus-visible,
.login a:focus-visible {
    outline: 2px solid #F0F0F0;
    outline-offset: 2px;
}