.rahino-auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Vazirmatn', ui-sans-serif, system-ui, sans-serif;
    background: #f0fdfa;
}

@keyframes rahino-auth-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rahino-auth-slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

html.rahino-loaded .rahino-auth__hero {
    animation: rahino-auth-slide-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.rahino-loaded .rahino-auth__main > * {
    animation: rahino-auth-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
    html.rahino-loaded .rahino-auth__hero,
    html.rahino-loaded .rahino-auth__main > * {
        animation: none !important;
    }
}

.rahino-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.rahino-auth__hero {
    background:
        radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.35), transparent 45%),
        linear-gradient(160deg, #0f766e 0%, #134e4a 45%, #0f172a 100%);
    color: #f8fafc;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.rahino-auth__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    font-weight: 800;
    font-size: 1.25rem;
}

.rahino-auth__brand img {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.35rem;
}

.rahino-auth__hero-content {
    margin: auto 0;
    max-width: 28rem;
}

.rahino-auth__hero-content h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 900;
    line-height: 1.35;
}

.rahino-auth__hero-content p {
    margin: 0 0 1.5rem;
    opacity: 0.9;
    line-height: 1.8;
}

.rahino-auth__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.rahino-auth__features li {
    position: relative;
    padding-right: 1.25rem;
    font-size: 0.95rem;
}

.rahino-auth__features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #5eead4;
    font-weight: 800;
}

.rahino-auth__main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.rahino-auth-card {
    width: 100%;
    max-width: 28rem;
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 24px 60px -30px rgba(15, 118, 110, 0.35);
    padding: 1.75rem;
}

.rahino-auth-card__head h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 900;
    color: #0f172a;
}

.rahino-auth-card__head p {
    margin: 0.35rem 0 1.25rem;
    color: #64748b;
    font-size: 0.9rem;
}

.rahino-auth-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    padding: 0.35rem;
    background: #f1f5f9;
    border-radius: 9999px;
}

.rahino-auth-tabs__btn {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0.55rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}

.rahino-auth-tabs__btn--active {
    background: #fff;
    color: #0f766e;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.rahino-auth-panel.hidden {
    display: none;
}

.rahino-auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.rahino-auth-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.rahino-auth-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.rahino-auth-input:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.rahino-auth-input--code {
    text-align: center;
    letter-spacing: 0.35em;
    font-weight: 800;
    font-size: 1.15rem;
}

.rahino-auth-select {
    min-height: 5.5rem;
}

.rahino-auth-submit {
    margin-top: 0.35rem;
    width: 100%;
    border: none;
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    background: #0f766e;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s;
}

.rahino-auth-submit:hover {
    background: #115e59;
}

.rahino-auth-submit--secondary {
    background: #059669;
}

.rahino-auth-submit--secondary:hover {
    background: #047857;
}

.rahino-auth-submit--ghost {
    background: #f1f5f9;
    color: #334155;
}

.rahino-auth-alert {
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    font-size: 0.88rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.rahino-auth-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.rahino-auth-alert--success {
    background: #ecfdf5;
    border: 1px solid #99f6e4;
    color: #047857;
}

.rahino-auth-alert--info {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    color: #115e59;
}

.rahino-auth-dev-code {
    margin-top: 0.35rem;
    font-family: ui-monospace, monospace;
    font-weight: 800;
}

.rahino-auth-display-code {
    margin-top: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px dashed #14b8a6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.rahino-auth-display-code strong {
    font-family: ui-monospace, monospace;
    font-size: 1.35rem;
    letter-spacing: 0.2em;
    color: #0f766e;
}

.rahino-auth-display-code__hint {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    opacity: 0.85;
}

.rahino-auth-field-hint {
    margin: -0.35rem 0 0.35rem;
    font-size: 0.78rem;
    color: #64748b;
}

.rahino-auth-bale-hint {
    margin: 0.55rem 0 0;
    font-size: 0.82rem;
    color: #0f766e;
    font-weight: 600;
    line-height: 1.5;
}

.rahino-auth-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 12rem;
    overflow-y: auto;
    padding: 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #f8fafc;
}

.rahino-auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: #334155;
    cursor: pointer;
    padding: 0.35rem 0.45rem;
    border-radius: 0.55rem;
    transition: background 0.15s;
}

.rahino-auth-checkbox:hover {
    background: #ecfdf5;
}

.rahino-auth-checkbox input {
    width: 1rem;
    height: 1rem;
    accent-color: #0f766e;
    flex-shrink: 0;
}

.rahino-auth-hint {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}

.rahino-auth-staff {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
}

.rahino-auth-staff summary {
    cursor: pointer;
    font-weight: 700;
    color: #475569;
}

.rahino-auth-form--staff {
    margin-top: 1rem;
}

.rahino-auth-password-wrap {
    position: relative;
}

.rahino-auth-input--password {
    padding-left: 2.75rem;
}

.rahino-auth-password-toggle {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 0;
}

.rahino-auth-password-toggle:hover {
    color: #0f766e;
}

.rahino-auth-password-toggle__icon {
    width: 1.15rem;
    height: 1.15rem;
}

.rahino-auth-password-toggle__icon.hidden {
    display: none;
}

.rahino-auth-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

.rahino-auth-footer {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.85rem;
}

.rahino-auth-footer a {
    color: #0f766e;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 900px) {
    .rahino-auth {
        grid-template-columns: 1fr;
    }

    .rahino-auth__hero {
        padding: 1.5rem;
        min-height: auto;
    }

    .rahino-auth__hero-content {
        margin: 1.5rem 0 0;
    }

    .rahino-auth__hero-content h1 {
        font-size: 1.35rem;
    }

    .rahino-auth__features {
        display: none;
    }
}
