/* Rayno Desk Login */
:root {
    --rayno-blue: #0d6ce2;
    --rayno-blue-rgb: 13, 108, 226;
    --rayno-dark: #101725;
    --rayno-panel: rgba(18, 27, 43, 0.88);
    --rayno-border: rgba(255, 255, 255, 0.10);
    --rayno-muted: #9aa8bc;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: #f4f7fb;
    font-family: "Vazirmatn", Arial, sans-serif;
    background:
        radial-gradient(
            circle at 18% 18%,
            rgba(var(--rayno-blue-rgb), 0.22),
            transparent 32%
        ),
        radial-gradient(
            circle at 82% 78%,
            rgba(var(--rayno-blue-rgb), 0.13),
            transparent 30%
        ),
        linear-gradient(135deg, #0b111c 0%, #101827 52%, #0a101a 100%);
}

.login-shell {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 28px;
    isolation: isolate;
}

.login-shell::before,
.login-shell::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
}

.login-shell::before {
    width: 360px;
    height: 360px;
    top: -170px;
    right: -110px;
    border: 1px solid rgba(var(--rayno-blue-rgb), 0.22);
    box-shadow:
        0 0 0 48px rgba(var(--rayno-blue-rgb), 0.035),
        0 0 0 96px rgba(var(--rayno-blue-rgb), 0.018);
}

.login-shell::after {
    width: 260px;
    height: 260px;
    bottom: -150px;
    left: -90px;
    background: rgba(var(--rayno-blue-rgb), 0.08);
}

.login-card {
    width: min(100%, 440px);
    padding: 38px;
    border: 1px solid var(--rayno-border);
    border-radius: 24px;
    background: var(--rayno-panel);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.login-logo {
    display: block;
    width: 92px;
    height: 92px;
    margin-bottom: 16px;
    object-fit: contain;
    filter: drop-shadow(
        0 12px 22px rgba(var(--rayno-blue-rgb), 0.22)
    );
}

.login-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    line-height: 1;
}

.login-wordmark-rayno,
.login-wordmark-desk {
    font-size: clamp(2rem, 7vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -1.2px;
}

.login-wordmark-rayno {
    color: #ffffff;
}

.login-wordmark-desk {
    color: var(--rayno-blue);
}

.login-subtitle {
    margin: 12px 0 0;
    color: var(--rayno-muted);
    font-size: 0.94rem;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 104, 104, 0.28);
    border-radius: 12px;
    color: #ffd7d7;
    background: rgba(206, 59, 59, 0.14);
    font-size: 0.9rem;
    line-height: 1.7;
}

.login-field {
    margin-bottom: 18px;
}

.login-label {
    display: block;
    margin-bottom: 8px;
    color: #dce4ef;
    font-size: 0.9rem;
    font-weight: 500;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 1;
    color: #718096;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-input {
    width: 100%;
    height: 52px;
    padding: 0 48px 0 44px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 13px;
    outline: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.055);
    font-family: inherit;
    font-size: 0.95rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.login-input::placeholder {
    color: #748196;
}

.login-input:focus {
    border-color: var(--rayno-blue);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 0 0 4px rgba(var(--rayno-blue-rgb), 0.14);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #8794a7;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 52px;
    margin-top: 5px;
    padding: 0 20px;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background: var(--rayno-blue);
    box-shadow: 0 12px 28px rgba(var(--rayno-blue-rgb), 0.24);
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 16px 32px rgba(var(--rayno-blue-rgb), 0.30);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.login-footer {
    margin-top: 25px;
    color: #708096;
    text-align: center;
    font-size: 0.78rem;
}

@media (max-width: 520px) {
    .login-shell {
        padding: 16px;
    }

    .login-card {
        padding: 30px 22px;
        border-radius: 20px;
    }

    .login-logo {
        width: 82px;
        height: 82px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
