:root {
    --lilac: #a07bff;
    --text-dark: #2c215a;
    --glass-bg: rgba(255,255,255,0.7);
    --glass-border: rgba(200,200,255,0.5);
    --accent: linear-gradient(135deg,#b89cff,#9f79ff);
}

html, body {
    height: 100%;
    margin: 0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background: #f7f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg,#f3f0ff,#fff);
    color: var(--text-dark);
}

.container {
    display: flex;
    gap: 24px;
    align-items: stretch;
    max-width: 960px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 8px 24px rgba(150,100,255,0.15);
    padding: 28px;
    box-sizing: border-box;
   direction:rtl
}

.showcase, .login-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
 
}

.showcase {
    background: linear-gradient(135deg,rgba(180,150,255,0.15),rgba(255,255,255,0.3));
    align-items: center;
    text-align: center;
}

    .showcase img {
        width: 140px;
        height: auto;
        margin-bottom: 20px;
    }

    .showcase h1 {
        margin: 0;
        font-size: 22px;
        color: var(--text-dark);
    }

    .showcase p {
        opacity: 0.8;
        line-height: 1.6;
        font-size: 15px;
    }

form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-size: 13px;
    color: #3d2d72;
}

.input {
    width: 100%;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(180,160,255,0.4);
    border-radius: 10px;
    padding: 12px 14px;
    color: #3d2d72;
    font-size: 15px;
    transition: all .2s ease;
    box-sizing: border-box;
    height: 40px;
}

    .input:focus {
        border-color: var(--lilac);
        outline: none;
        box-shadow: 0 4px 12px rgba(160,123,255,0.2);
        background: #fff;
    }

/* Captcha */
.captcha-row {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.captcha-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.captcha-image-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    width: 85%;
    height: 40px;
}

.captcha-image {
    width: 110px;
    height: 30px;
    border-radius: 6px;
}

.captcha-refresh {
    color: #7b6eea !important;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s !important;
    display: inline-flex; /* یا flex */
    align-items: center;
    justify-content: center;
    transform-origin: center center; /* مهم: محور چرخش وسط باشد */
}


    .captcha-refresh:hover {
        transform: rotate(180deg) !important;
        color: #5b4ed3 !important;
    }

.captcha-input {
    flex: 1;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    direction: rtl;
}

.btn {
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(160,123,255,0.25);
}

.support-link {
    text-align: center;
    margin-top: 10px;
    color: #745bbf;
    font-size: 14px;
    cursor: pointer;
    transition: color .2s;
}

    .support-link:hover {
        color: var(--text-dark);
    }

dialog {
    border: none;
    border-radius: 14px;
    padding: 24px;
    background: rgba(255,255,255,0.95);
    color: var(--text-dark);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

    dialog::backdrop {
        background: rgba(0,0,0,0.35);
    }

.close-btn {
    margin-top: 16px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    color: var(--text-dark);
    padding: 6px 12px;
    cursor: pointer;
}

.error {
    color: #b3003b;
    font-size: 13px;
    margin-top: 4px;
    text-align: center;
    display: none;
}

@media(max-width:800px) {
    .container {
        flex-direction: column;
    }

    .captcha-image {
        width: 110px;
    }
}

.login-footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
    z-index: 50;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* فاصله بین تصویر و متن */
}

.footer-logo {
    width: 120px;
    height: auto;
}

/*body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/images/company.png');*/ /* مسیر نسبت به wwwroot */
/*background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    filter: brightness(0.85);
}

.container {
    position: relative;
    z-index: 1;
}*/
/* Force Captcha MVC Validation to be red */
.text-danger {
    color: #d32f2f !important;
    font-size: 13px;
}

/* Force Toast error color */
