/* ===========================
   WordPress Login Screen Customization
   Senox CARE Theme
   =========================== */

/* Reset and Base Styles */
.senox-care-login {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

/* Full Screen Background Image */
.senox-care-login::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/login-bg.jpg') center/cover no-repeat;
    z-index: -2;
}

/* Fallback gradient background if no image */
.senox-care-login:not(.has-background-image)::before {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
}

/* Background Overlay */
.senox-care-login::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 132, 87, 0.7); Senox brand color overlay */
    rgb(0 0 0 / 30%);
    z-index: -1;
}

/* Login Container */
#login {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    margin: 0 auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

/* Logo Container */
.login h1 {
    text-align: center;
    margin-bottom: 30px;
}

.login h1 a {
    display: block;
    width: 200px !important;
    height: 80px !important;
    margin: 0 auto 25px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    text-indent: -9999px;
    outline: none;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.login h1 a:hover {
    transform: scale(1.05);
}

/* Login Form */
.login form {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Input Fields */
.login input[type="text"],
.login input[type="password"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
    border-color: #008457;
    box-shadow: 0 0 0 3px rgba(0, 132, 87, 0.1);
    outline: none;
}

/* Submit Button */
.login .button-primary {
    width: 100%;
    padding: 15px;
    background: #008457;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login .button-primary:hover {
    background: #006B47;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 132, 87, 0.3);
}

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

/* Remember Me Checkbox */
.login .forgetmenot {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.login .forgetmenot input {
    margin-right: 8px;
    width: auto;
}

.login .forgetmenot label {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* Links */
.login #nav,
.login #backtoblog {
    text-align: center;
    margin-top: 20px;
}

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

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Error Messages */
.login .message,
.login #login_error {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #008457;
    color: #333;
}

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

/* Lost Password Form */
.login #lostpasswordform {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    #login {
        padding: 20px;
        max-width: 350px;
    }
    
    .login form,
    .login #lostpasswordform {
        padding: 30px 20px;
    }
    
    .login h1 a {
        width: 150px !important;
        height: 60px !important;
    }
}

@media (max-width: 480px) {
    #login {
        padding: 15px;
        max-width: 300px;
    }
    
    .login form,
    .login #lostpasswordform {
        padding: 25px 15px;
    }
    
    .login input[type="text"],
    .login input[type="password"],
    .login .button-primary {
        padding: 12px;
        font-size: 14px;
    }
}

/* Animation for form appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login form,
.login #lostpasswordform {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading State */
.login .button-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Language Switcher */
.login .language-switcher {
    text-align: center;
    margin-top: 20px;
}

.login .language-switcher select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    color: #333;
}

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

.login .privacy-policy-page-link a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-decoration: none;
}

.login .privacy-policy-page-link a:hover {
    color: #fff;
}
