/*
 * Styles for the custom YMD Login Form
 * Version: 2.1 - Font definitions removed, now handled by PHP.
 */

/* Main container for centering and background */
body.page-template-default {
    /* Optional: Add a subtle background to the whole page */
    /* background-color: #f0f2f5; */
}

.ymd-login-container {
    font-family: 'Riwaa-Regular', sans-serif;
    max-width: 400px;
    margin: 5em auto;
    padding: 2.5em;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    border: 1px solid #e9ecef;
    direction: rtl;
}

/* Form wrapper inside the container */
.ymd-login-form-wrapper #loginform {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Custom heading for the form */
.ymd-login-form-wrapper h2.form-title {
    font-family: 'Riwaa-Heavy', sans-serif;
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5em;
}

/* Style for labels */
.ymd-login-form-wrapper #loginform label {
    font-size: 1rem;
    color: #34495e;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

/* Style for input fields */
.ymd-login-form-wrapper #loginform input[type="text"],
.ymd-login-form-wrapper #loginform input[type="password"] {
    width: 100%;
    height: 50px;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #ced4da;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box; /* Important for padding */
}

.ymd-login-form-wrapper #loginform input[type="text"]:focus,
.ymd-login-form-wrapper #loginform input[type="password"]:focus {
    border-color: #3498db;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

/* Spacing for form rows */
.ymd-login-form-wrapper #loginform p {
    margin-bottom: 1.5em;
}

/* 'Remember me' checkbox */
.ymd-login-form-wrapper .forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -1em;
}
.ymd-login-form-wrapper .forgetmenot label {
    font-weight: normal;
    font-size: 0.95em;
    color: #555;
    margin: 0;
}
.ymd-login-form-wrapper .forgetmenot input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Submit button */
.ymd-login-form-wrapper #loginform #wp-submit {
    font-family: 'Riwaa-Heavy', sans-serif;
    width: 100%;
    height: 52px;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    border-radius: 8px;
    border: none;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.ymd-login-form-wrapper #loginform #wp-submit:hover {
    background-color: #2980b9;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}
.ymd-login-form-wrapper #loginform #wp-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

/* Logged-in user notice */
.ymd-login-form-wrapper .ymd-notice {
    text-align: center;
    padding: 2em;
    background: #f1f9ff;
    border: 1px solid #a6d5fa;
    border-radius: 8px;
}
.ymd-login-form-wrapper .ymd-notice a {
    text-decoration: none;
    font-weight: bold;
}
.ymd-login-form-wrapper .ymd-notice a.button {
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    margin: 5px;
}
.ymd-login-form-wrapper .ymd-notice a.button-primary {
    background-color: #3498db;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .ymd-login-container {
        margin: 1em;
        padding: 1.5em;
    }
    .ymd-login-form-wrapper h2.form-title {
        font-size: 1.8rem;
    }
}