/* Dayche Custom Login Styles */

/* 1. Background (Dark Ocean Blue) */
body.login {
    background-color: #efefef;
    /* Fallback */
    background-image: linear-gradient(to bottom, #efefef, #efefef, #efefef);
    /* Dark Ocean Gradient */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* overflow: hidden;  <-- REMOVED to prevent clipping footer */
    padding: 20px;
    font-family: 'IRANSans', 'Tahoma', sans-serif !important;
}

/* 2. Login Container (Card) */
#login {
    width: 400px;
    padding: 30px;
    margin: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

/* 3. Logo */
.login h1 {
    text-align: center;
    padding: 0;
    margin-bottom: 20px;
}

.login h1 a {
    /* Path to uploads/2025/11/site-logo.png relative to themes/astra-child/assets/css/ */
    background-image: url('../../../../uploads/2025/11/site-logo.png') !important;
    background-size: contain;
    background-position: center;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: block;
}

/* 4. Hide Language Switcher */
.language-switcher,
#language-switcher,
.wp-login-language-switcher {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 5. Form Styles */
.login form {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
}

.login label {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.login input[type=text],
.login input[type=password] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
    background: #f9f9f9;
    font-size: 15px;
    color: #333;
    box-shadow: none;
    direction: ltr;
    /* Passwords/Emails usually LTR */
    text-align: left;
}

.login input:focus {
    border-color: #2c5364;
    box-shadow: 0 0 0 2px rgba(44, 83, 100, 0.2);
    background: #fff;
}

/* 6. Button */
.wp-core-ui .button-primary {
    background: linear-gradient(to right, #2c5364, #203a43) !important;
    border: none !important;
    color: white !important;
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-shadow: none;
    margin-top: 10px;
    transition: transform 0.2s;
}

.wp-core-ui .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 7. Footer Links (Lost Password / Back to Site) */
.login #nav,
.login #backtoblog {
    text-align: center;
    padding-top: 15px;
    margin: 0;
    position: relative;
    z-index: 10;
    /* Ensure on top */
}

.login #nav a,
.login #backtoblog a {
    color: rgba(17, 117, 217, 0.8) !important;
    /* Bright white/grey */
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    /* Shadow for readability */
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #0f2027 !important;
    text-decoration: underline;
}

/* Hide Remember Me Checkbox if desired, or style it */
.forgetmenot {
    float: none !important;
    margin-bottom: 20px !important;
    display: flex;
    align-items: center;
}

.forgetmenot input[type=checkbox] {
    margin-left: 10px !important;
    /* RTL */
}