/* 
 * Modern Custom Login Page Style 
 * Author: Rumhh Team
 */

body.login {
    background-color: #f0f2f5;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Cairo', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Background Design Elements */
body.login::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: linear-gradient(45deg, #4CAF50, #81c784);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    opacity: 0.1;
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}

body.login::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, #2196F3, #64b5f6);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    opacity: 0.1;
    z-index: -1;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(30px, 30px) rotate(10deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Login Container */
#login {
    width: 450px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

/* Logo Replacement */
#login h1 {
    text-align: center;
    margin-bottom: 30px;
}

#login h1 a {
    background-image: none !important;
    width: auto !important;
    height: auto !important;
    text-indent: 0 !important;
    font-size: 32px;
    font-weight: 800;
    color: #333;
    text-decoration: none;
    display: block;
    line-height: 1.2;
}

#login h1 a::before {
    font-family: 'Font Awesome 6 Free';
    content: '\f4bb';
    /* User Tie or similar icon */
    font-weight: 900;
    color: #4CAF50;
    margin-left: 10px;
}

/* Form Styling */
.login form {
    margin-top: 0;
    margin-left: 0;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.login label {
    font-size: 14px;
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.login form .input,
.login input[type=text] {
    font-size: 16px;
    line-height: normal;
    width: 100%;
    padding: 12px 15px;
    background: #fdfdfd;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    color: #333;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.login form .input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
    background: #fff;
}

/* Button Styling */
.wp-core-ui .button-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    border: none !important;
    color: #fff !important;
    text-shadow: none !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
    width: 100%;
    height: 50px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    margin-top: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    float: none !important;
}

.wp-core-ui .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4) !important;
}

/* Links (Lost Password / Go to Site) */
.login #backtoblog,
.login #nav {
    text-align: center;
    padding: 0 !important;
    margin-top: 20px !important;
}

.login #backtoblog a,
.login #nav a {
    color: #777 !important;
    font-size: 14px;
    transition: color 0.3s;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
}

.login #backtoblog a:hover,
.login #nav a:hover {
    color: #4CAF50 !important;
    background: #fff;
}

/* Hide Default WP Messages borders/bg if ugly */
.login .message,
.login .success {
    border-left: 4px solid #4CAF50;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    color: #333;
}

.login #login_error {
    border-left: 4px solid #f44336;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

/* Hide Remember Me Checkbox */
.forgetmenot {
    float: none !important;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.forgetmenot input[type=checkbox] {
    margin: 0 0 0 10px !important;
    /* RTL Support */
    border-radius: 4px;
    border: 2px solid #ccc;
}

/* RTL Specifics */
body.rtl.login h1 a::before {
    margin-left: 0;
    margin-right: 10px;
}

/* Hide Language Switcher */
.language-switcher {
    display: none !important;
}