.user-login-container,
.user-login-container input,
.user-login-container button {
    font-family: 'Vazirmatn', sans-serif;
}

.user-login-container {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #f1f5f9;
    background: linear-gradient(160deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    padding: 24px 20px 20px;
}

.user-login-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.08);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    border: 1px solid #eee;
}

.user-login-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1e293b;
    font-family: 'Lalezar', sans-serif;
    letter-spacing: -0.5px;
}

.user-login-subtitle {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 30px;
}

.login-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.login-tab {
    flex: 1;
    min-width: 0;
    padding: 12px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: #64748b;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    line-height: 1.4;
}

.login-tab .material-icons {
    flex-shrink: 0;
    font-size: 20px;
}

.login-tab.active {
    color: #475569;
    border-bottom-color: #64748b;
    font-weight: 600;
}

.login-tab:hover {
    color: #475569;
}

[data-login-root] .tab-content {
    display: none;
}

[data-login-root] .tab-content.active {
    display: block;
}

.user-login-form .form-group {
    margin-bottom: 20px;
}

.user-login-form label {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-weight: 500;
}

.user-login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.2s;
    box-sizing: border-box;
    background-color: #f8fafc;
}

.user-login-form input:focus {
    outline: none;
    border-color: #64748b;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.15);
}

.user-login-form .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.user-login-form .remember-me input {
    width: auto;
}

.user-login-form .btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #EF3F40 0%, #d63637 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.user-login-form .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 63, 64, 0.3);
    background: #d63637;
}

.user-login-form .btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    background: #fef2f2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
}

.success-message {
    background: #f0fdf4;
    color: #166534;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.otp-info {
    text-align: center;
    color: #64748b;
    margin-bottom: 20px;
    font-size: 14px;
}

.otp-login-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.otp-login-note .material-icons {
    font-size: 18px;
    color: #94a3b8;
}

.otp-actions {
    display: flex;
    gap: 10px;
}

.otp-actions .btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.otp-actions .btn-secondary:hover {
    background: #e2e8f0;
    color: #334155;
}

.resend-otp {
    text-align: center;
    margin-top: 15px;
}

.resend-otp button {
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.resend-otp button:hover {
    color: #334155;
}

.resend-otp button:disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

@media (max-width: 420px) {
    .user-login-box {
        padding: 32px 20px;
    }

    .login-tabs {
        gap: 4px;
    }

    .login-tab {
        padding: 10px 4px;
        font-size: 13px;
        gap: 3px;
    }

    .login-tab .material-icons {
        font-size: 18px;
    }
}

@media (max-width: 340px) {
    .user-login-container {
        padding-inline: 12px;
    }

    .login-tab {
        font-size: 12px;
    }

    .login-tab .material-icons {
        font-size: 16px;
    }
}
