:root {
    --dzls-primary: #FF6B57;
    --dzls-primary-dark: #ED4B3A;
    --dzls-secondary: #5A4AE3;
    --dzls-accent: #FFC857;
    --dzls-text: #F5F7FF;
    --dzls-surface: #0F172A;
    --dzls-logo: none;
}

body.login {
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
    color: var(--dzls-text);
    font-family: IRANSans, Vazirmatn, "Vazir", Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at 15% 12%, rgba(90, 74, 227, 0.3), transparent 250px),
        radial-gradient(circle at 80% 10%, rgba(255, 107, 87, 0.18), transparent 220px),
        linear-gradient(180deg, #050b17 0%, #0d1220 100%);
}

body.login::before,
body.login::after {
    content: "";
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(1px);
}

body.login::before {
    inset: auto auto -130px -110px;
    width: 360px;
    height: 360px;
    background: linear-gradient(135deg, rgba(255, 107, 87, 0.28), transparent 70%);
}

body.login::after {
    top: -100px;
    right: -70px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(90, 74, 227, 0.32), transparent 72%);
}

.login #login {
    position: relative;
    z-index: 2;
    width: min(430px, calc(100% - 24px));
    padding: 18px 0 32px;
}

.login h1 {
    margin: 0 auto 12px;
}

.login h1 a {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background-image: var(--dzls-logo) !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.28));
}

.dzls-login-intro {
    text-align: center;
    margin: 0 0 18px;
}

.dzls-login-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 14px;
    margin-bottom: 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--dzls-primary), var(--dzls-secondary));
    box-shadow: 0 14px 24px rgba(90, 74, 227, 0.22);
    font-size: 12px;
    font-weight: 800;
}

.dzls-login-intro strong,
.login .dzls-login-intro strong {
    display: block;
    color: #fff;
    font-size: 24px;
    line-height: 1.7;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.dzls-login-intro small {
    display: block;
    max-width: 350px;
    margin: 6px auto 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.9;
}

.login form {
    position: relative;
    margin-top: 0 !important;
    padding: 28px 24px 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 26px !important;
    background: rgba(18, 25, 38, 0.86) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
}

.login form::before {
    content: "";
    position: absolute;
    top: 0;
    right: 22px;
    left: 22px;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--dzls-primary), var(--dzls-secondary), var(--dzls-accent));
}

.login label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 800;
    line-height: 2.2;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    min-height: 52px;
    padding: 0 16px !important;
    margin: 4px 0 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    color: #fff;
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-size: 16px;
    transition: 0.22s ease;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    border-color: var(--dzls-primary) !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 87, 0.15) !important;
    outline: none !important;
}

.login .forgetmenot {
    float: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 18px !important;
}

.login .forgetmenot label {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.login input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-color: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.wp-core-ui.login .button-primary,
.wp-core-ui.login .button.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none;
    width: 100%;
    min-height: 52px;
    padding: 0 22px;
    border: 0 !important;
    border-radius: 16px !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--dzls-primary), var(--dzls-primary-dark)) !important;
    box-shadow: 0 18px 32px rgba(237, 75, 58, 0.28) !important;
    font-size: 15px;
    font-weight: 900;
    text-shadow: none !important;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.wp-core-ui.login .button-primary:hover,
.wp-core-ui.login .button-primary:focus {
    transform: translateY(-2px);
    filter: saturate(1.08);
}

.login #nav,
.login #backtoblog {
    margin: 18px 0 0 !important;
    padding: 0 !important;
    text-align: center;
}

.login #nav a,
.login #backtoblog a,
.login .privacy-policy-page-link a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.login #nav a:hover,
.login #backtoblog a:hover,
.login .privacy-policy-page-link a:hover {
    color: var(--dzls-primary) !important;
}

.login .privacy-policy-page-link {
    margin: 18px 0 0;
    text-align: center;
}

.login .message,
.login .notice,
.login #login_error {
    margin: 0 0 16px !important;
    padding: 14px 16px !important;
    border: 0 !important;
    border-right: 4px solid var(--dzls-primary) !important;
    border-radius: 16px !important;
    color: #fff;
    background: rgba(255, 107, 87, 0.14) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2) !important;
    line-height: 1.9;
}

.login #login_error {
    border-right-color: #ff8c66 !important;
}

.language-switcher {
    display: none !important;
}

.dzls-login-footer-note {
    position: fixed;
    z-index: 2;
    right: 50%;
    bottom: 18px;
    transform: translateX(50%);
    min-width: 210px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.76);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.dzls-orb,
.dzls-leaf {
    position: fixed;
    z-index: 1;
    pointer-events: none;
}

.dzls-orb {
    border-radius: 999px;
    opacity: 0.38;
}

.dzls-orb-one {
    width: 94px;
    height: 94px;
    top: 22%;
    left: 12%;
    background: linear-gradient(135deg, var(--dzls-secondary), transparent);
}

.dzls-orb-two {
    width: 68px;
    height: 68px;
    right: 12%;
    bottom: 22%;
    background: linear-gradient(135deg, var(--dzls-primary), transparent);
}

.dzls-leaf {
    width: 76px;
    height: 42px;
    border-radius: 100% 0 100% 0;
    background: linear-gradient(135deg, var(--dzls-accent), var(--dzls-primary));
    opacity: 0.4;
}

.dzls-leaf-one {
    top: 17%;
    right: 18%;
    transform: rotate(24deg);
}

.dzls-leaf-two {
    left: 16%;
    bottom: 18%;
    transform: rotate(-28deg);
}

@keyframes dzlsFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}

@media (max-width: 480px) {
    .login #login {
        width: calc(100% - 24px);
        padding-top: 24px;
    }

    .login h1 a {
        width: 104px !important;
        height: 104px !important;
    }

    .dzls-login-intro strong {
        font-size: 20px;
    }

    .login form {
        padding: 22px 18px 20px !important;
        border-radius: 24px !important;
    }

    .dzls-login-footer-note {
        display: none;
    }
}
