/* =====================================================================
   ClassBan — صفحه ورود (فارسی / RTL)
   ===================================================================== */

.auth-page {
    min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
    font-family: var(--font, "Vazirmatn", "Segoe UI", Tahoma, sans-serif);
    background: #f3f6fb; color: #3c4a63;
}

.auth-aside {
    position: relative; overflow: hidden; color: #e8f6f4;
    background: radial-gradient(70% 60% at 20% 15%, rgba(45,212,191,.28), transparent 60%),
                radial-gradient(60% 55% at 85% 80%, rgba(79,70,229,.30), transparent 62%),
                linear-gradient(160deg, #07222a 0%, #0c323a 55%, #08222a 100%);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 40px 44px;
}
.auth-aside::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 46px 46px; opacity: .55; pointer-events: none;
}
.auth-aside > * { position: relative; z-index: 2; }

.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand__mark {
    width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
    background: linear-gradient(135deg, #2dd4bf, #0ea5e9); color: #052220; font-weight: 900; font-size: 21px;
    box-shadow: 0 10px 26px rgba(45,212,191,.35);
}
.auth-brand__name { font-size: 1.2rem; font-weight: 800; color: #fff; }
.auth-brand__sub { font-size: .78rem; color: #9dc3bf; }

.auth-hero h1 { font-size: 1.75rem; color: #fff; margin: 0 0 14px; line-height: 1.75; font-weight: 800; }
.auth-hero p { color: #b3d5d1; margin: 0 0 26px; max-width: 460px; line-height: 2.05; font-size: .95rem; }

.auth-points { display: grid; gap: 11px; max-width: 430px; }
.auth-point {
    display: flex; gap: 11px; align-items: flex-start; background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 11px 14px; font-size: .87rem;
}
.auth-point svg { width: 19px; height: 19px; color: #2dd4bf; flex: none; margin-top: 3px; }
.auth-point b { color: #fff; display: block; font-size: .89rem; }
.auth-point span { color: #a9ccc8; font-size: .8rem; line-height: 1.85; }

.auth-foot { font-size: .76rem; color: #7fa8a4; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 34px 22px; }
.auth-card {
    width: 100%; max-width: 430px; background: #fff; border: 1px solid #dfe6f0;
    border-radius: 22px; box-shadow: 0 22px 60px rgba(16,42,84,.12); padding: 32px 30px;
}
.auth-card h2 { margin: 0 0 6px; font-size: 1.25rem; color: #16233b; }
.auth-card .sub { color: #7286a3; font-size: .85rem; margin-bottom: 22px; }

.auth-field { margin-bottom: 15px; }
.auth-field label { display: block; font-size: .84rem; font-weight: 600; color: #16233b; margin-bottom: 6px; }
.auth-field input {
    width: 100%; padding: 11px 14px; border: 1px solid #c6d2e3; border-radius: 12px;
    font-family: inherit; font-size: .92rem; color: #16233b; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.auth-field input:focus { outline: none; border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.16); }
.auth-field .pw-wrap { position: relative; }
.auth-field .pw-wrap input { padding-left: 42px; }
.auth-field .pw-toggle {
    position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: #7286a3; padding: 6px;
    display: flex; align-items: center; justify-content: center; line-height: 0;
    border-radius: 8px; transition: color .15s, background-color .15s;
}
.auth-field .pw-toggle:hover { color: #0f766e; background: rgba(15,118,110,.08); }
.auth-field .pw-toggle:focus-visible { outline: 2px solid #14b8a6; outline-offset: 2px; }

.auth-submit {
    width: 100%; padding: 12px; border: none; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; font-family: inherit;
    font-size: .98rem; font-weight: 700; box-shadow: 0 10px 26px rgba(15,118,110,.28);
    transition: transform .13s, box-shadow .2s;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(15,118,110,.34); }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.auth-card--admin { border-top: 4px solid #4f46e5; }
.auth-card--admin .auth-submit { background: linear-gradient(135deg, #4338ca, #6366f1); box-shadow: 0 10px 26px rgba(79,70,229,.3); }
.auth-admin-tag {
    display: inline-flex; align-items: center; gap: 6px; background: #eef0fe; color: #4338ca;
    border: 1px solid #d6d9fb; border-radius: 30px; padding: 3px 12px; font-size: .74rem; font-weight: 700; margin-bottom: 12px;
}

.auth-alert { border-radius: 12px; padding: 11px 14px; margin-bottom: 16px; font-size: .85rem; border: 1px solid; }
.auth-alert--error { background: #fdeaef; border-color: #f7c3d0; color: #97103a; }
.auth-alert--success { background: #e9f8ef; border-color: #bfe6cd; color: #12603a; }
.auth-alert--warning { background: #fef4e6; border-color: #f6dcb2; color: #85500a; }
.auth-alert--info { background: #eef0fe; border-color: #d6d9fb; color: #3a34b5; }

.auth-links { margin-top: 18px; text-align: center; font-size: .82rem; color: #7286a3; }
.auth-links a { color: #0f766e; font-weight: 600; }

.auth-note {
    margin-top: 20px; padding: 12px 14px; background: #f7fafd; border: 1px dashed #c6d2e3;
    border-radius: 12px; font-size: .78rem; color: #5c6b85; line-height: 1.95;
}

@media (max-width: 900px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-main { padding: 22px 15px; align-items: flex-start; }
    .auth-card { padding: 26px 20px; border-radius: 18px; }
}
