/* --- Template 1: Dark Blue Modern (Responsive) --- */
html {
    background: #1e2833;
}

body.cld-active {
    background: linear-gradient(160deg, #46539a 0%, #2f2f7c 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Tahoma', 'Vazir', sans-serif;
    direction: rtl;
}

.cld-active #login {
    width: 420px;
    max-width: 95%;
    padding: 30px;
    background: #394264;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    margin: 80px 0;
}

/* Logo */
.cld-active .login h1 {
    margin-bottom: 25px;
}
.cld-active .login h1 a {
    background-image: url("https://i.imgur.com/5VpqwYf.png") !important; /* Placeholder for LOGINO image */
    background-size: contain;
    background-position: center;
    width: 120px;
    height: 60px;
    margin: 0 auto;
    display: block;
}

/* Form */
.cld-active #loginform {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Inputs */
.cld-active .login form .input,
.cld-active .login input[type="text"],
.cld-active .login input[type="password"] {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50px;
    padding: 14px 25px;
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    box-shadow: none;
    width: 100%;
}
.cld-active .login input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #2e3653 inset !important;
    -webkit-text-fill-color: #fff !important;
}

/* Password eye icon */
.cld-active .wp-pwd .button {
    color: #9e9e9e !important;
    left: 15px;
    top: 10px;
}

/* Remember me & Lost password */
.cld-active .forgetmenot, .cld-active #nav {
    display: inline-block;
    width: 48%;
}
.cld-active .forgetmenot {
    float: right;
    margin: 10px 0;
}
.cld-active #nav {
    float: left;
    margin: 10px 0;
    padding: 0;
    text-align: left;
}
.cld-active .forgetmenot label {
    color: #b0b8d7;
}
.cld-active .forgetmenot input[type="checkbox"] {
    border-color: #b0b8d7;
    background: #394264;
}
.cld-active #nav a {
    color: #b0b8d7;
}
.cld-active #nav a:hover, .cld-active .forgetmenot label:hover {
    color: #fff;
}

/* Submit Button */
.cld-active .submit #wp-submit {
    background: #20dc69;
    border: none;
    border-radius: 50px;
    width: 100%;
    height: 50px;
    text-shadow: none;
    box-shadow: 0 5px 15px rgba(32, 220, 105, 0.3);
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}
.cld-active .submit #wp-submit:hover {
    background: #1caf54;
}

/* Top corner links */
.cld-active #backtoblog {
    position: absolute;
    top: -55px;
    left: 0;
}
.cld-active #backtoblog a {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 18px;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
}
/* This is a trick to add the "Register" button */
.cld-active #login::before {
    content: 'ثبت‌نام';
    position: absolute;
    top: -55px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 25px;
    border-radius: 50px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
}
.cld-active #login::before:hover {
    background: #fff;
}

/* Messages */
.cld-active .message, .cld-active #login_error {
    border-radius: 10px;
    border-right: 4px solid #20dc69;
    border-left: none;
}
.cld-active #login_error {
    border-right-color: #e74c3c;
}

/* --- Responsive for Mobile --- */
@media (max-width: 600px) {
    .cld-active #login {
        width: 90%;
        padding: 20px;
        margin-top: 60px;
    }
    .cld-active #backtoblog, .cld-active #login::before {
        top: 20px;
        transform: none;
    }
     .cld-active #backtoblog { left: 15px; }
     .cld-active #login::before { right: 15px; }
    .cld-active #login {
        padding-top: 80px; /* Make space for buttons */
    }
}