@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

html, body {
    direction: rtl;
    text-align: right;
    background: var(--cu-bg, #f0f9ff);
    font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

body {
    margin: 0;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 55%, #90e0ef 100%);
    position: relative;
    overflow: hidden;
}

.auth-page::before,
.auth-page::after {
    content: "";
    position: absolute;
    border: 6px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.auth-page::before {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -80px;
}

.auth-page::after {
    width: 320px;
    height: 320px;
    bottom: -100px;
    left: -100px;
}

.auth-brand-block {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 28px;
    animation: cu-fade-down 0.4s ease;
}

.auth-logo-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 28px rgba(0, 77, 120, 0.2);
}

.auth-logo-wrap i {
    font-size: 2rem;
    color: #fff;
}

.auth-brand-block h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.auth-brand-tagline {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    line-height: 1.8;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0, 77, 120, 0.22);
    padding: 28px 22px;
    position: relative;
    z-index: 1;
    animation: cu-fade-up 0.45s ease 0.08s both;
}

.auth-brand {
    margin-bottom: 20px;
    text-align: center;
}

.auth-brand h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #1b263b;
}

.auth-brand p {
    margin: 0;
    color: #61718b;
    font-size: 0.92rem;
    line-height: 1.9;
}

.auth-step {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.auth-step-badge {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-left: 8px;
    flex-shrink: 0;
}

.auth-step-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1b263b;
}

.auth-form-group {
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #50627f;
}

.auth-input {
    width: 100%;
    min-height: 52px;
    border: 2px solid #e8f0f7;
    border-radius: 24px;
    padding: 12px 16px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f8fbff;
    text-align: right;
    direction: rtl;
    font-family: inherit;
    box-sizing: border-box;
}

.auth-input:focus {
    border-color: #0077b6;
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.12);
    background: #fff;
}

.auth-input::placeholder {
    text-align: right;
    color: #94a3b8;
}

.auth-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 800;
    transition: transform 0.16s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    font-family: inherit;
    cursor: pointer;
}

.auth-button-primary {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 119, 182, 0.28);
}

.auth-button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 119, 182, 0.34);
}

.auth-button-secondary {
    background: #eff6ff;
    color: #0077b6;
    border: 1px solid #bfdbfe;
}

.auth-button-secondary:hover {
    background: #dbeafe;
}

.auth-message,
.auth-error {
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 0.92rem;
    line-height: 1.8;
}

.auth-message {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.auth-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-mobile-preview {
    margin-bottom: 14px;
    font-size: 0.92rem;
    color: #374151;
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 12px 14px;
    line-height: 1.8;
}

.auth-divider {
    height: 1px;
    background: #dbeafe;
    margin: 20px 0;
}

.auth-link {
    display: inline-block;
    margin-top: 12px;
    color: #0077b6;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .auth-card {
        padding: 36px 32px;
    }

    .auth-brand-block h1 {
        font-size: 2.4rem;
    }
}
