/* ============================= */
/* Custom WordPress Login Page */
/* Background: rgb(43,43,43) */
/* ============================= */

/* Reset any default backgrounds */
html, body {
    background: transparent !important;
    height: 100%;
    margin: 0;
}

/* Body Styling */
body.login {
    background: rgb(43, 43, 43) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh !important;
    font-family: 'Poppins', sans-serif;
}

/* Login Box */
#login {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 35px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.9s ease-in-out;
}

/* Logo */
.login h1 a {
    background-image: url("https://bedaya.space/wp-content/uploads/2026/02/شعار-بسيط-منصة-تعليمية-الكترونية-1.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 140px;
    height: 140px;
    margin: 0 auto 25px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.login h1 a:hover {
    transform: scale(1.08);
}

/* Form */
.login form {
    margin-top: 10px;
}

.login form .input,
.login input[type="text"],
.login input[type="password"] {
    width: 100%;
    padding: 13px 15px;
    margin-bottom: 16px;
    border-radius: 30px;
    border: 2px solid #e0e0e0;
    font-size: 15px;
    background: #f9f9f9;
    color: #333;
    transition: 0.3s ease;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 12px rgba(102,126,234,0.5);
    outline: none;
}

/* Submit Button */
.login .button-primary {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.login .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(118,75,162,0.5);
}

.login .button-primary:active {
    transform: translateY(0);
}

/* Links */
.login #nav,
.login #backtoblog {
    margin-top: 18px;
    text-align: center;
}

.login #nav a,
.login #backtoblog a {
    color: #667eea;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #764ba2;
}

/* Messages */
.login .message,
.login .error {
    background: #ffffff;
    border-left: 4px solid #ff6b6b;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Hide Language Switcher */
body.login .language-switcher,
body.login #language-switcher {
    display: none !important;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
