.account-auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background:
        radial-gradient(ellipse 70% 50% at 20% 0%, rgba(32, 196, 244, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(99, 102, 241, 0.12), transparent 50%),
        linear-gradient(160deg, #03173d 0%, #0a3d62 42%, #eef4f8 100%);
}

.account-auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    min-height: auto;
}

.account-auth-card {
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 16px 48px rgba(3, 23, 61, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    backdrop-filter: blur(20px) saturate(1.3);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-auth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 56px rgba(3, 23, 61, 0.14), 0 6px 20px rgba(32, 196, 244, 0.12);
}

.account-auth-card__hero {
    background: linear-gradient(135deg, rgba(32, 196, 244, 0.95) 0%, rgba(14, 158, 196, 0.9) 55%, rgba(6, 122, 155, 0.88) 100%);
    color: #fff;
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.account-auth-card__hero img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.account-auth-card__hero h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.account-auth-card__hero p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.92;
    line-height: 1.6;
}

.account-auth-card__hint {
    font-size: 0.8rem !important;
    opacity: 0.88;
}

.account-auth-links__sep {
    margin: 0 0.35rem;
    opacity: 0.5;
}

.account-auth-card__body {
    padding: 1.5rem !important;
}

.account-auth-form .mud-input-root {
    margin-bottom: 0.25rem;
}

.account-mobile-unified__label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--mud-palette-text-secondary, #555);
}

.account-mobile-unified__row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    direction: ltr;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}

.account-mobile-unified__row:focus-within {
    border-color: #20c4f4;
    box-shadow: 0 0 0 1px #20c4f4;
}

.account-mobile-unified__prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.45rem 0.75rem 0.55rem;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    color: var(--mud-palette-primary);
    background: rgba(32, 196, 244, 0.08);
    border-right: 1px solid var(--mud-palette-lines-inputs);
    user-select: none;
    flex-shrink: 0;
    width: auto;
    min-width: 2.25rem;
}

.account-mobile-unified__input {
    flex: 1;
    border: none;
    outline: none;
    margin: 0;
    padding: 0.75rem 0.5rem 0.75rem 0.25rem;
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-align: left;
    background: transparent;
    min-width: 0;
    width: 100%;
}

/* در صفحه RTL، ورودی LTR نباید وسط‌چین شود */
.account-mobile-unified__row .account-mobile-unified__input {
    direction: ltr;
    unicode-bidi: plaintext;
}

.account-mobile-unified__helper {
    margin-top: 0.35rem;
}

.account-auth-native-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.75rem 0.85rem;
    font-size: 1rem;
    line-height: 1.25;
    background: #fff;
    color: #222;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.account-auth-native-input:focus {
    outline: none;
    border-color: #20c4f4;
    box-shadow: 0 0 0 1px #20c4f4;
}

.account-auth-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
}

.account-auth-remember input {
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.account-auth-submit {
    margin-top: 0.5rem;
    border-radius: 12px !important;
    font-weight: 600 !important;
    padding: 0.65rem !important;
}

.account-auth-submit--native {
    display: block;
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    color: #fff;
    background: var(--mud-palette-primary, #20c4f4);
    box-shadow: 0 2px 8px rgba(32, 196, 244, 0.35);
    transition: filter 0.2s, transform 0.1s;
}

.account-auth-submit--native:hover {
    filter: brightness(1.05);
}

.account-auth-submit--native:active {
    transform: scale(0.99);
}

.account-auth-links {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.account-auth-links a {
    color: #0e9ec4;
    text-decoration: none;
    font-weight: 600;
}

.account-auth-links a:hover {
    text-decoration: underline;
}

.account-auth-links__hint {
    margin: 0 0 0.35rem;
    color: #666;
    font-size: 0.9rem;
}

.account-auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.account-auth-alert--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.account-auth-alert--error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.account-upgrade-card {
    max-width: 480px;
}

.account-upgrade-features {
    background: #f4fafc;
    border: 1px solid rgba(32, 196, 244, 0.2);
    border-radius: 12px;
}

.account-upgrade-list {
    margin: 0;
    padding-inline-start: 1.2rem;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.7;
}

.account-upgrade-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #fff8eb;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.account-upgrade-price__label {
    color: #64748b;
    font-size: 0.9rem;
}

.account-upgrade-price__value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #b45309;
}

.account-upgrade-price__unit {
    font-size: 0.85rem;
    color: #92400e;
}

.account-upgrade-notify-btn {
    margin-top: 4px;
    min-height: 48px;
    font-weight: 600;
}

.account-auth-submit--upgrade {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

body.dark-mode .account-auth-card {
    background: rgba(36, 37, 48, 0.82);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.dark-mode .account-auth-card__body {
    background: transparent;
}
