/**
 * Custom Login Page Styles
 * Operating Sessions Theme
 */

/* Body and background */
body.login {
    background: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hero image section */
.login-hero-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin-bottom: 40px;
}

.login-hero-image .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.login-hero-image .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.login-hero-image .hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 20px;
}

.login-hero-image .hero-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.login-hero-image .hero-description {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.login-hero-image .hero-details {
    font-size: 16px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.login-hero-image .hero-details div {
    margin: 4px 0;
}

/* Login container */
#login {
    padding: 5% 0 0;
}

/* Login form container */
.login form {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 26px 24px 24px;
}

/* Logo */
.login h1 a {
    background-image: none !important;
    width: 100%;
    height: auto;
    text-indent: 0;
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 20px;
}

.login h1 a::before {
    content: attr(title);
    display: block;
}

/* Input fields */
.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #1f2937;
    font-size: 16px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    background: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    outline: none;
}

/* Labels */
.login label {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

/* Submit button */
.login .button-primary {
    background: #dc2626;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    text-shadow: none;
    transition: all 0.3s ease;
    width: 100%;
    height: auto;
}

.login .button-primary:hover,
.login .button-primary:focus {
    background: #b91c1c;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
    transform: translateY(-1px);
}

.login .button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

/* Links */
.login #nav a,
.login #backtoblog a {
    color: #374151;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #dc2626;
    text-decoration: underline;
}

/* Navigation below form */
.login #nav,
.login #backtoblog {
    text-align: center;
    margin: 16px 0 0;
}

/* Remember me checkbox */
.login .forgetmenot {
    display: flex;
    align-items: center;
}

.login .forgetmenot label {
    margin-bottom: 0;
}

.login input[type="checkbox"] {
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.login input[type="checkbox"]:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    outline: none;
}

.login input[type="checkbox"]:checked {
    background: #dc2626;
    border-color: #dc2626;
}

/* Message boxes */
.login .message,
.login .success,
.login #login_error {
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
}

.login .message,
.login .success {
    background: #f0fdf4;
    border-left-color: #10b981;
    color: #065f46;
}

.login #login_error {
    background: #fef2f2;
    border-left-color: #dc2626;
    color: #991b1b;
}

/* Privacy policy link */
.privacy-policy-page-link {
    text-align: center;
    margin-top: 16px;
}

.privacy-policy-page-link a {
    color: #374151;
    font-size: 13px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    #login {
        width: 90%;
        padding: 10% 0 0;
    }
    
    .login h1 a {
        font-size: 24px;
    }
    
    .login-hero-image {
        height: 180px;
    }
    
    .login-hero-image .hero-title {
        font-size: 20px;
    }
    
    .login-hero-image .hero-description,
    .login-hero-image .hero-details {
        font-size: 14px;
    }
}

/* Language switcher if present */
.login .language-switcher {
    text-align: center;
    margin-top: 16px;
}

/* Remove password strength indicator styling conflicts */
.login .pw-weak {
    color: #dc2626;
}

/* Lost password form specific styling */
#lostpasswordform .submit {
    text-align: center;
}

/* Custom logo support - if custom logo exists */
body.login.has-custom-logo .login h1 a {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    width: 320px;
    height: 100px;
    text-indent: -9999px;
}

body.login.has-custom-logo .login h1 a::before {
    display: none;
}

